[pypy-svn] r69426 - pypy/branch/unpackiterable-improvements/pypy/interpreter/test

fijal at codespeak.net fijal at codespeak.net
Thu Nov 19 11:19:35 CET 2009


Author: fijal
Date: Thu Nov 19 11:19:35 2009
New Revision: 69426

Modified:
   pypy/branch/unpackiterable-improvements/pypy/interpreter/test/test_compiler.py
Log:
This test fails on 2.6. It's CPycompiler, so differences in warning module
are to blame.


Modified: pypy/branch/unpackiterable-improvements/pypy/interpreter/test/test_compiler.py
==============================================================================
--- pypy/branch/unpackiterable-improvements/pypy/interpreter/test/test_compiler.py	(original)
+++ pypy/branch/unpackiterable-improvements/pypy/interpreter/test/test_compiler.py	Thu Nov 19 11:19:35 2009
@@ -651,6 +651,9 @@
     elif sys.version_info < (2, 6):
         _unicode_error_kind = "w_UnicodeDecodeError"
     else:
+        def skip_on_2_6(self):
+            py.test.skip("syntax different on CPython 2.6 compiler")
+        test_globals_warnings = skip_on_2_6
         _unicode_error_kind = "w_SyntaxError"
 
 class TestPythonAstCompiler_25_grammar(BaseTestCompiler):



More information about the Pypy-commit mailing list