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

Method test_all

Lib/test/test_traceback.py:5078–5086  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

5076class MiscTest(unittest.TestCase):
5077
5078 def test_all(self):
5079 expected = set()
5080 for name in dir(traceback):
5081 if name.startswith('_'):
5082 continue
5083 module_object = getattr(traceback, name)
5084 if getattr(module_object, '__module__', None) == 'traceback':
5085 expected.add(name)
5086 self.assertCountEqual(traceback.__all__, expected)
5087
5088 def test_levenshtein_distance(self):
5089 # copied from _testinternalcapi.test_edit_cost

Callers

nothing calls this directly

Calls 4

setFunction · 0.85
assertCountEqualMethod · 0.80
startswithMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected