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

Method test_extract_stack_limit

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

Source from the content-addressed store, hash-verified

3375 self.assertIsInstance(s, traceback.StackSummary)
3376
3377 def test_extract_stack_limit(self):
3378 s = traceback.StackSummary.extract(traceback.walk_stack(None), limit=5)
3379 self.assertEqual(len(s), 5)
3380
3381 def test_extract_stack_lookup_lines(self):
3382 linecache.clearcache()

Callers

nothing calls this directly

Calls 2

extractMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected