MCPcopy
hub / github.com/pytest-dev/pytest / test_asynctest_support

Function test_asynctest_support

testing/test_unittest.py:1394–1399  ·  view source on GitHub ↗

Check asynctest support (#7110)

(pytester: Pytester)

Source from the content-addressed store, hash-verified

1392 sys.version_info >= (3, 11), reason="asynctest is not compatible with Python 3.11+"
1393)
1394def test_asynctest_support(pytester: Pytester) -> None:
1395 """Check asynctest support (#7110)"""
1396 pytest.importorskip("asynctest")
1397 pytester.copy_example("unittest/test_unittest_asynctest.py")
1398 reprec = pytester.inline_run()
1399 reprec.assertoutcome(failed=1, passed=2)
1400
1401
1402def test_plain_unittest_does_not_support_async(pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 3

assertoutcomeMethod · 0.80
copy_exampleMethod · 0.45
inline_runMethod · 0.45

Tested by

no test coverage detected