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

Method test_extract_stack

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

Source from the content-addressed store, hash-verified

3371 self.assertEqual(len(s), 1)
3372
3373 def test_extract_stack(self):
3374 s = traceback.StackSummary.extract(traceback.walk_stack(None))
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)

Callers

nothing calls this directly

Calls 2

assertIsInstanceMethod · 0.80
extractMethod · 0.45

Tested by

no test coverage detected