summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_scope.py
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2001-01-30 01:26:53 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2001-01-30 01:26:53 (GMT)
commit251ef9666e44792a71c5f1cb83c5b1f3b110a46f (patch)
tree139b2b9fdc24626538f6634536541c54e23c383f /Lib/test/test_scope.py
parentac25a38841b4b14176e52bddeb67fec9e0a81f84 (diff)
downloadcpython-251ef9666e44792a71c5f1cb83c5b1f3b110a46f.zip
cpython-251ef9666e44792a71c5f1cb83c5b1f3b110a46f.tar.gz
cpython-251ef9666e44792a71c5f1cb83c5b1f3b110a46f.tar.bz2
Fix test for free ref to global. This test should have caught a
recently fixed bug, but it checked for the wrong answer.
Diffstat (limited to 'Lib/test/test_scope.py')
-rw-r--r--Lib/test/test_scope.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_scope.py b/Lib/test/test_scope.py
index c566301..8be3f61 100644
--- a/Lib/test/test_scope.py
+++ b/Lib/test/test_scope.py
@@ -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"