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

Function _make_skipped_test

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

Source from the content-addressed store, hash-verified

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

Callers 1

_find_test_pathMethod · 0.85

Calls 1

TestClassClass · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…