Skip to content

Commit 2c49505

Browse files
committed
test: monkey patch for running the new mayjor version of pytest-asyncio
1 parent 0b89f78 commit 2c49505

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/conftest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
start_local_http_server, \
1212
StopServer
1313

14+
import _pytest.fixtures
15+
16+
if not hasattr(_pytest.fixtures.FixtureDef, "unittest"):
17+
_pytest.fixtures.FixtureDef.unittest = False
18+
1419
pytest_plugins = ('pytest_asyncio', )
1520

1621

0 commit comments

Comments
 (0)