MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_asynctest_support

Function test_asynctest_support

testing/test_unittest.py:1285–1291  ·  view source on GitHub ↗

Check asynctest support (#7110)

(pytester: Pytester)

Source from the content-addressed store, hash-verified

1283
1284
1285def test_asynctest_support(pytester: Pytester) -> None:
1286 """Check asynctest support (#7110)"""
1287 pytest.importorskip("asynctest")
1288
1289 pytester.copy_example("unittest/test_unittest_asynctest.py")
1290 reprec = pytester.inline_run()
1291 reprec.assertoutcome(failed=1, passed=2)
1292
1293
1294def 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