Skip to content

Commit 37ce139

Browse files
authored
Add asyncio fixture to test_instance_async_method_spy (#516)
This ensures that this test executes and passes with pytest-8.4+. pytest now throws errors [for such functions](pytest-dev/pytest#11372) which were skipped in older versions.
1 parent 3422633 commit 37ce139

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/test_pytest_mock.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,7 @@ def __call__(self, x):
524524
assert spy.spy_return_list == [20]
525525

526526

527+
@pytest.mark.asyncio
527528
async def test_instance_async_method_spy(mocker: MockerFixture) -> None:
528529
class Foo:
529530
async def bar(self, arg):

0 commit comments

Comments
 (0)