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

Method test_symtable_entry_repr

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

Source from the content-addressed store, hash-verified

544 "<symbol 'x': LOCAL, DEF_LOCAL|DEF_FREE_CLASS>")
545
546 def test_symtable_entry_repr(self):
547 expected = f"<symtable entry top({self.top.get_id()}), line {self.top.get_lineno()}>"
548 self.assertEqual(repr(self.top._table), expected)
549
550 def test__symtable_refleak(self):
551 # Regression test for reference leak in PyUnicode_FSDecoder.

Callers

nothing calls this directly

Calls 4

reprFunction · 0.85
get_idMethod · 0.45
get_linenoMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected