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

Method test_from_list

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

Source from the content-addressed store, hash-verified

3397 self.assertEqual(s[0].line, "import sys")
3398
3399 def test_from_list(self):
3400 s = traceback.StackSummary.from_list([('foo.py', 1, 'fred', 'line')])
3401 self.assertEqual(
3402 [' File "foo.py", line 1, in fred\n line\n'],
3403 s.format())
3404
3405 def test_from_list_edited_stack(self):
3406 s = traceback.StackSummary.from_list([('foo.py', 1, 'fred', 'line')])

Callers

nothing calls this directly

Calls 3

from_listMethod · 0.45
assertEqualMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected