[pypy-svn] r61246 - pypy/trunk/pypy/interpreter/test

arigo at codespeak.net arigo at codespeak.net
Thu Jan 22 16:31:59 CET 2009


Author: arigo
Date: Thu Jan 22 16:31:59 2009
New Revision: 61246

Modified:
   pypy/trunk/pypy/interpreter/test/test_compiler.py
Log:
Test for Carl Friderich :-)


Modified: pypy/trunk/pypy/interpreter/test/test_compiler.py
==============================================================================
--- pypy/trunk/pypy/interpreter/test/test_compiler.py	(original)
+++ pypy/trunk/pypy/interpreter/test/test_compiler.py	Thu Jan 22 16:31:59 2009
@@ -54,6 +54,11 @@
             space.raises_w(space.w_SyntaxError, self.compiler.compile_command,
                            ')', '?', mode, 0)
 
+    def test_indentation_error(self):
+        space = self.space
+        space.raises_w(space.w_SyntaxError, self.compiler.compile_command,
+                       'if 1:\n  x\n y\n', '?', 'exec', 0)
+
     def test_getcodeflags(self):
         code = self.compiler.compile('from __future__ import division\n',
                                      '<hello>', 'exec', 0)



More information about the Pypy-commit mailing list