Author: Antonio Cuni <[email protected]>
Branch: py3k
Changeset: r51756:b83de607e7cc
Date: 2012-01-25 10:13 +0100
http://bitbucket.org/pypy/pypy/changeset/b83de607e7cc/

Log:    fix the test, which was broken by the implementation of nonlocal in
        d6d9ea7ba306

diff --git a/pypy/interpreter/astcompiler/test/test_symtable.py 
b/pypy/interpreter/astcompiler/test/test_symtable.py
--- a/pypy/interpreter/astcompiler/test/test_symtable.py
+++ b/pypy/interpreter/astcompiler/test/test_symtable.py
@@ -272,7 +272,7 @@
         assert xscp.lookup("y") == symtable.SCOPE_GLOBAL_EXPLICIT
         assert zscp.lookup("y") == symtable.SCOPE_FREE
         exc = py.test.raises(SyntaxError, self.func_scope, input).value
-        assert exc.msg == "name 'x' is local and global"
+        assert exc.msg == "name 'x' is parameter and global"
 
     def test_optimization(self):
         assert not self.mod_scope("").can_be_optimized
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to