Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'main' into wip-symtable
  • Loading branch information
serhiy-storchaka committed Oct 14, 2023
commit dd9341bbc43ee5cf962ccd00f985c3189826d5e9
4 changes: 4 additions & 0 deletions Lib/test/test_symtable.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,10 @@ def test_symbol_repr(self):
self.assertEqual(repr(self.other_internal.lookup("some_var")),
"<symbol 'some_var': FREE, USE|DEF_NONLOCAL|DEF_LOCAL>")

def test_symtable_entry_repr(self):
expected = f"<symtable entry top({self.top.get_id()}), line {self.top.get_lineno()}>"
self.assertEqual(repr(self.top._table), expected)


class CommandLineTest(unittest.TestCase):
maxDiff = None
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.