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

Function _make_skipped_test

Lib/unittest/loader.py:50–56  ·  view source on GitHub ↗
(methodname, exception, suiteClass)

Source from the content-addressed store, hash-verified

48 return suiteClass((test,)), message
49
50def _make_skipped_test(methodname, exception, suiteClass):
51 @case.skip(str(exception))
52 def testSkipped(self):
53 pass
54 attrs = {methodname: testSkipped}
55 TestClass = type("ModuleSkipped", (case.TestCase,), attrs)
56 return suiteClass((TestClass(methodname),))
57
58def _splitext(path):
59 return os.path.splitext(path)[0]

Callers 1

_find_test_pathMethod · 0.85

Calls 1

TestClassClass · 0.50

Tested by

no test coverage detected