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

Method test_all

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

Source from the content-addressed store, hash-verified

4847class MiscTest(unittest.TestCase):
4848
4849 def test_all(self):
4850 expected = set()
4851 for name in dir(traceback):
4852 if name.startswith('_'):
4853 continue
4854 module_object = getattr(traceback, name)
4855 if getattr(module_object, '__module__', None) == 'traceback':
4856 expected.add(name)
4857 self.assertCountEqual(traceback.__all__, expected)
4858
4859 def test_levenshtein_distance(self):
4860 # copied from _testinternalcapi.test_edit_cost

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected