Skip to content
6 changes: 6 additions & 0 deletions testing/test_unittest.py
Original file line number Diff line number Diff line change
Expand Up @@ -1324,6 +1324,12 @@ def test_async_support(pytester: Pytester) -> None:

def test_asynctest_support(pytester: Pytester) -> None:
"""Check asynctest support (#7110)"""
import sys

if sys.version_info >= (3, 11):
import pytest

pytest.skip("asynctest is not compatible with Python 3.11+")
pytest.importorskip("asynctest")

pytester.copy_example("unittest/test_unittest_asynctest.py")
Expand Down
Loading