MCPcopy Index your code
hub / github.com/python/cpython / test_skip

Method test_skip

Lib/test/test_regrtest.py:1032–1044  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1030 stats=3 * len(tests))
1031
1032 def test_skip(self):
1033 code = textwrap.dedent("""
1034 import unittest
1035 raise unittest.SkipTest("nope")
1036 """)
1037 test_ok = self.create_test('ok')
1038 test_skip = self.create_test('skip', code=code)
1039 tests = [test_ok, test_skip]
1040
1041 output = self.run_tests(*tests)
1042 self.check_executed_tests(output, tests,
1043 skipped=[test_skip],
1044 stats=1)
1045
1046 def test_failing_test(self):
1047 # test a failing test

Callers

nothing calls this directly

Calls 4

run_testsMethod · 0.95
create_testMethod · 0.80
check_executed_testsMethod · 0.80
dedentMethod · 0.45

Tested by

no test coverage detected