diff options
author | Bénédikt Tran <10796600+picnixz@users.noreply.github.com> | 2024-06-04 14:24:22 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-04 14:24:22 (GMT) |
commit | ff1857d6ed52fab8ef1507c289d89ee545ca6478 (patch) | |
tree | b3a00a6d782aa05155c26bd46d095720dd84e3e5 /Lib/test/test_symtable.py | |
parent | e69d068ad0bd6a25434ea476a647b635da4d82bb (diff) | |
download | cpython-ff1857d6ed52fab8ef1507c289d89ee545ca6478.zip cpython-ff1857d6ed52fab8ef1507c289d89ee545ca6478.tar.gz cpython-ff1857d6ed52fab8ef1507c289d89ee545ca6478.tar.bz2 |
gh-120029: export `DEF_TYPE_PARAM` compiler flag (#120028)
Diffstat (limited to 'Lib/test/test_symtable.py')
-rw-r--r-- | Lib/test/test_symtable.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_symtable.py b/Lib/test/test_symtable.py index 92b78a8..ef2a228 100644 --- a/Lib/test/test_symtable.py +++ b/Lib/test/test_symtable.py @@ -299,6 +299,8 @@ class SymtableTest(unittest.TestCase): "<symbol 'x': FREE, USE>") self.assertEqual(repr(self.other_internal.lookup("some_var")), "<symbol 'some_var': FREE, USE|DEF_NONLOCAL|DEF_LOCAL>") + self.assertEqual(repr(self.GenericMine.lookup("T")), + "<symbol 'T': LOCAL, DEF_LOCAL|DEF_TYPE_PARAM>") def test_symtable_entry_repr(self): expected = f"<symtable entry top({self.top.get_id()}), line {self.top.get_lineno()}>" |