Skip to content

Commit 46568cc

Browse files
committed
skip Asyncio support for python version 3.11 and above
1 parent 9913ced commit 46568cc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

testing/test_unittest.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1324,6 +1324,10 @@ def test_async_support(pytester: Pytester) -> None:
13241324

13251325
def test_asynctest_support(pytester: Pytester) -> None:
13261326
"""Check asynctest support (#7110)"""
1327+
import sys
1328+
if sys.version_info >= (3, 11):
1329+
import pytest
1330+
pytest.skip("asynctest is not compatible with Python 3.11+")
13271331
pytest.importorskip("asynctest")
13281332

13291333
pytester.copy_example("unittest/test_unittest_asynctest.py")

0 commit comments

Comments
 (0)