nvim-neotest / neotest-python

MIT License
137 stars 40 forks source link

bug: pytest-rerunfailures #87

Open UN-9BOT opened 3 weeks ago

UN-9BOT commented 3 weeks ago

Execution error for flaky test with decorator, using the pytest-rerunfailures plugin.

import pytest

@pytest.mark.flaky(reruns=3)
def test_add():
    assert 1 + 1 == 3

image

Package list

❯ pip list iniconfig 2.0.0 packaging 24.1 pip 24.2 pluggy 1.5.0 pytest 8.3.3 pytest-rerunfailures 14.0

Error details

```log Error executing vim.schedule lua callback: ...e/vim9/.local/share/nvim/lazy/nvim-nio/lua/nio/tasks.lua:100: Async task failed without callback: The coroutine failed with this message: ...e/nvim/lazy/neotest/lua/neotest/consumers/diagnostic.lua:92: Invalid 'id': Expected Lua number stack traceback: [C]: in function 'nvim_buf_get_extmark_by_id' ...e/nvim/lazy/neotest/lua/neotest/consumers/diagnostic.lua:92: in function 'create_diagnostics' ...e/nvim/lazy/neotest/lua/neotest/consumers/diagnostic.lua:54: in function 'draw_buffer' ...e/nvim/lazy/neotest/lua/neotest/consumers/diagnostic.lua:177: in function 'draw_buffer' ...e/nvim/lazy/neotest/lua/neotest/consumers/diagnostic.lua:239: in function 'listener' ...are/nvim/lazy/neotest/lua/neotest/client/events/init.lua:51: in function <...are/nvim/lazy/neotest/lua/neotest/client/events/init.lua:47> stack traceback: [C]: in function 'error' ...e/vim9/.local/share/nvim/lazy/nvim-nio/lua/nio/tasks.lua:100: in function 'close_task' ...e/vim9/.local/share/nvim/lazy/nvim-nio/lua/nio/tasks.lua:122: in function 'cb' ...e/vim9/.local/share/nvim/lazy/nvim-nio/lua/nio/tasks.lua:188: in function <...e/vim9/.local/share/nvim/lazy/nvim-nio/lua/nio/tasks.lua:187> ```