[pypy-svn] r79926 - pypy/trunk/pypy/interpreter/pyparser/test

arigo at codespeak.net arigo at codespeak.net
Thu Dec 9 14:24:12 CET 2010


Author: arigo
Date: Thu Dec  9 14:24:10 2010
New Revision: 79926

Modified:
   pypy/trunk/pypy/interpreter/pyparser/test/test_pyparse.py
Log:
Fix test.

Modified: pypy/trunk/pypy/interpreter/pyparser/test/test_pyparse.py
==============================================================================
--- pypy/trunk/pypy/interpreter/pyparser/test/test_pyparse.py	(original)
+++ pypy/trunk/pypy/interpreter/pyparser/test/test_pyparse.py	Thu Dec  9 14:24:10 2010
@@ -75,9 +75,10 @@
         for input in ("())", "(()", "((", "))"):
             py.test.raises(SyntaxError, parse, input)
         exc = py.test.raises(SyntaxError, parse, "x = (\n\n(),\n(),").value
-        assert exc.msg == "EOF in multi-line statement"
+        assert exc.msg == "parenthesis is never closed"
         assert exc.lineno == 1
         assert exc.offset == 5
+        assert exc.lastlineno == 5
 
     def test_is(self):
         self.parse("x is y")



More information about the Pypy-commit mailing list