[pypy-svn] r58058 - pypy/branch/pypy-pytrunk/pypy/interpreter/test

pedronis at codespeak.net pedronis at codespeak.net
Thu Sep 11 10:34:01 CEST 2008


Author: pedronis
Date: Thu Sep 11 10:34:00 2008
New Revision: 58058

Modified:
   pypy/branch/pypy-pytrunk/pypy/interpreter/test/test_appinterp.py
Log:
(iko, pedronis)

fix test, don't depend on excinfo str, depend on the SyntaxError one



Modified: pypy/branch/pypy-pytrunk/pypy/interpreter/test/test_appinterp.py
==============================================================================
--- pypy/branch/pypy-pytrunk/pypy/interpreter/test/test_appinterp.py	(original)
+++ pypy/branch/pypy-pytrunk/pypy/interpreter/test/test_appinterp.py	Thu Sep 11 10:34:00 2008
@@ -22,7 +22,7 @@
     (): 
         y y 
     """)
-    assert str(excinfo).find('y y') != -1 
+    assert str(excinfo.value).find('y y') != -1 
 
 def test_simple_applevel(space):
     app = appdef("""app(x,y): 



More information about the Pypy-commit mailing list