We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39c6d0c commit c919fd7Copy full SHA for c919fd7
pytest_asyncio/plugin.py
@@ -452,7 +452,7 @@ def pytest_runtest_setup(item: pytest.Item) -> None:
452
if "event_loop" in fixturenames:
453
fixturenames.remove("event_loop")
454
fixturenames.insert(0, "event_loop")
455
- obj = item.obj # type: ignore[attr-defined]
+ obj = getattr(item, 'obj', None)
456
if (
457
item.get_closest_marker("asyncio") is not None
458
and not getattr(obj, "hypothesis", False)
0 commit comments