We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e629f50 + cfec47d commit a027769Copy full SHA for a027769
tests/test_doctestplus.py
@@ -13,10 +13,12 @@
13
14
try:
15
import pytest_asyncio # noqa: F401
16
- has_pytest_asyncio = True
+ if Version(pytest_asyncio.__version__) < Version('1.0'):
17
+ main_pytest_asyncio_xfails = True
18
+ else:
19
+ main_pytest_asyncio_xfails = False
20
except ImportError:
- has_pytest_asyncio = False
-
21
22
23
24
pytest_plugins = ['pytester']
@@ -1189,7 +1191,7 @@ class MyClass:
1189
1191
1190
1192
1193
@pytest.mark.xfail(
- has_pytest_asyncio,
1194
+ main_pytest_asyncio_xfails,
1195
reason='pytest_asyncio monkey-patches .collect()')
1196
def test_main(testdir):
1197
pkg = testdir.mkdir('pkg')
0 commit comments