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

Function test_SkipTest_in_test

testing/test_nose.py:351–361  ·  view source on GitHub ↗
(pytester: Pytester)

Source from the content-addressed store, hash-verified

349
350
351def test_SkipTest_in_test(pytester: Pytester) -> None:
352 pytester.makepyfile(
353 """
354 import nose
355
356 def test_skipping():
357 raise nose.SkipTest("in test")
358 """
359 )
360 reprec = pytester.inline_run()
361 reprec.assertoutcome(skipped=1)
362
363
364def test_istest_function_decorator(pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 3

assertoutcomeMethod · 0.80
makepyfileMethod · 0.45
inline_runMethod · 0.45

Tested by

no test coverage detected