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

Method test_from_list

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

Source from the content-addressed store, hash-verified

3475 self.assertEqual(s[0].line, "import sys")
3476
3477 def test_from_list(self):
3478 s = traceback.StackSummary.from_list([('foo.py', 1, 'fred', 'line')])
3479 self.assertEqual(
3480 [' File "foo.py", line 1, in fred\n line\n'],
3481 s.format())
3482
3483 def test_from_list_edited_stack(self):
3484 s = traceback.StackSummary.from_list([('foo.py', 1, 'fred', 'line')])

Callers

nothing calls this directly

Calls 3

from_listMethod · 0.80
assertEqualMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected