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

Method test_symtable_entry_repr

Lib/test/test_symtable.py:531–533  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

529 "<symbol 'x': LOCAL, DEF_LOCAL|DEF_FREE_CLASS>")
530
531 def test_symtable_entry_repr(self):
532 expected = f"<symtable entry top({self.top.get_id()}), line {self.top.get_lineno()}>"
533 self.assertEqual(repr(self.top._table), expected)
534
535 def test_lambda(self):
536 st = symtable.symtable("lambda x: x", "?", "exec")

Callers

nothing calls this directly

Calls 3

get_idMethod · 0.80
get_linenoMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected