Skip to content

Commit f096488

Browse files
committed
symtable fix 4
1 parent 17072bd commit f096488

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Lib/test/test_symtable.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -620,10 +620,8 @@ def inner():
620620
return x"""
621621

622622
top=symtable.symtable(code,"?","exec")
623-
outer=top.get_children()[0]
624-
623+
outer = find_block(top, "outer")
625624
self.assertIn("x",outer.get_cells())
626-
627625
self.assertTrue(outer.lookup("x").is_cell())
628626
self.assertFalse(outer.lookup("inner").is_cell())
629627

0 commit comments

Comments
 (0)