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

Method test_format_smoke

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

Source from the content-addressed store, hash-verified

3489 s2.format())
3490
3491 def test_format_smoke(self):
3492 # For detailed tests see the format_list tests, which consume the same
3493 # code.
3494 s = traceback.StackSummary.from_list([('foo.py', 1, 'fred', 'line')])
3495 self.assertEqual(
3496 [' File "foo.py", line 1, in fred\n line\n'],
3497 s.format())
3498
3499 def test_locals(self):
3500 linecache.updatecache('/foo.py', globals())

Callers

nothing calls this directly

Calls 3

from_listMethod · 0.80
assertEqualMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected