Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions tests/test_doctestplus.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@

try:
import pytest_asyncio # noqa: F401
has_pytest_asyncio = True
if Version(pytest_asyncio.__version__) < Version('1.0'):
main_pytest_asyncio_xfails = True
else:
main_pytest_asyncio_xfails = False
except ImportError:
has_pytest_asyncio = False

main_pytest_asyncio_xfails = False


pytest_plugins = ['pytester']
Expand Down Expand Up @@ -1189,7 +1191,7 @@ class MyClass:


@pytest.mark.xfail(
has_pytest_asyncio,
main_pytest_asyncio_xfails,
reason='pytest_asyncio monkey-patches .collect()')
def test_main(testdir):
pkg = testdir.mkdir('pkg')
Expand Down