From: Jeremy Hylton Date: Tue, 30 Jan 2001 01:26:53 +0000 (+0000) Subject: Fix test for free ref to global. This test should have caught a X-Git-Tag: v2.1a2~76 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=251ef9666e44792a71c5f1cb83c5b1f3b110a46f;p=thirdparty%2FPython%2Fcpython.git Fix test for free ref to global. This test should have caught a recently fixed bug, but it checked for the wrong answer. --- diff --git a/Lib/test/test_scope.py b/Lib/test/test_scope.py index c5663014ac01..8be3f6185f82 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"