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

Method test_format_smoke

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

Source from the content-addressed store, hash-verified

3411 s2.format())
3412
3413 def test_format_smoke(self):
3414 # For detailed tests see the format_list tests, which consume the same
3415 # code.
3416 s = traceback.StackSummary.from_list([('foo.py', 1, 'fred', 'line')])
3417 self.assertEqual(
3418 [' File "foo.py", line 1, in fred\n line\n'],
3419 s.format())
3420
3421 def test_locals(self):
3422 linecache.updatecache('/foo.py', globals())

Callers

nothing calls this directly

Calls 3

from_listMethod · 0.45
assertEqualMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected