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

Method test_no_locals

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

Source from the content-addressed store, hash-verified

3426 self.assertEqual(s[0].locals, {'something': '1'})
3427
3428 def test_no_locals(self):
3429 linecache.updatecache('/foo.py', globals())
3430 c = test_code('/foo.py', 'method')
3431 f = test_frame(c, globals(), {'something': 1})
3432 s = traceback.StackSummary.extract(iter([(f, 6)]))
3433 self.assertEqual(s[0].locals, None)
3434
3435 def test_format_locals(self):
3436 def some_inner(k, v):

Callers

nothing calls this directly

Calls 2

extractMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected