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

Method test_extract_stack_limit

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

Source from the content-addressed store, hash-verified

3453 self.assertIsInstance(s, traceback.StackSummary)
3454
3455 def test_extract_stack_limit(self):
3456 s = traceback.StackSummary.extract(traceback.walk_stack(None), limit=5)
3457 self.assertEqual(len(s), 5)
3458
3459 def test_extract_stack_lookup_lines(self):
3460 linecache.clearcache()

Callers

nothing calls this directly

Calls 3

lenFunction · 0.85
extractMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected