[pypy-svn] r17824 - pypy/dist/pypy/interpreter/test

arigo at codespeak.net arigo at codespeak.net
Sat Sep 24 13:54:38 CEST 2005


Author: arigo
Date: Sat Sep 24 13:54:34 2005
New Revision: 17824

Removed:
   pypy/dist/pypy/interpreter/test/test_synerr.py
Modified:
   pypy/dist/pypy/interpreter/test/test_exec.py
Log:
Moved the test of test_synerr.py into test_exec.py.


Modified: pypy/dist/pypy/interpreter/test/test_exec.py
==============================================================================
--- pypy/dist/pypy/interpreter/test/test_exec.py	(original)
+++ pypy/dist/pypy/interpreter/test/test_exec.py	Sat Sep 24 13:54:34 2005
@@ -187,3 +187,8 @@
         assert m.result == {'x': 'm'}
         exec "y=n" in m   # NOTE: this doesn't work in CPython 2.4
         assert m.result == {'x': 'm', 'y': 'n'}
+
+    def test_synerr(self):
+        def x():
+            exec "1 2"
+        raises(SyntaxError, x)



More information about the Pypy-commit mailing list