MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_skip

Method test_skip

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

Source from the content-addressed store, hash-verified

996 stats=3 * len(tests))
997
998 def test_skip(self):
999 code = textwrap.dedent("""
1000 import unittest
1001 raise unittest.SkipTest("nope")
1002 """)
1003 test_ok = self.create_test('ok')
1004 test_skip = self.create_test('skip', code=code)
1005 tests = [test_ok, test_skip]
1006
1007 output = self.run_tests(*tests)
1008 self.check_executed_tests(output, tests,
1009 skipped=[test_skip],
1010 stats=1)
1011
1012 def test_failing_test(self):
1013 # test a failing test

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected