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

Method test_from_list_edited_stack

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

Source from the content-addressed store, hash-verified

3481 s.format())
3482
3483 def test_from_list_edited_stack(self):
3484 s = traceback.StackSummary.from_list([('foo.py', 1, 'fred', 'line')])
3485 s[0] = ('foo.py', 2, 'fred', 'line')
3486 s2 = traceback.StackSummary.from_list(s)
3487 self.assertEqual(
3488 [' File "foo.py", line 2, in fred\n line\n'],
3489 s2.format())
3490
3491 def test_format_smoke(self):
3492 # For detailed tests see the format_list tests, which consume the same

Callers

nothing calls this directly

Calls 3

from_listMethod · 0.80
assertEqualMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected