Fix test for free ref to global. This test should have caught a

recently fixed bug, but it checked for the wrong answer.
This commit is contained in:
Jeremy Hylton 2001-01-30 01:26:53 +00:00
parent ac25a38841
commit 251ef9666e
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ def make_adder6(x):
inc = make_adder6(1)
plus10 = make_adder6(10)
verify(inc(1) == 2)
verify(inc(1) == 11) # there's only one global
verify(plus10(-2) == 8)
print "7. nearest enclosing scope"