[pypy-svn] r78317 - pypy/branch/fast-forward/lib-python/modified-2.7.0/test

afa at codespeak.net afa at codespeak.net
Tue Oct 26 21:36:36 CEST 2010


Author: afa
Date: Tue Oct 26 21:36:34 2010
New Revision: 78317

Added:
   pypy/branch/fast-forward/lib-python/modified-2.7.0/test/test_compile.py
      - copied, changed from r78315, pypy/branch/fast-forward/lib-python/2.7.0/test/test_compile.py
Log:
Skip an implementation specific test


Copied: pypy/branch/fast-forward/lib-python/modified-2.7.0/test/test_compile.py (from r78315, pypy/branch/fast-forward/lib-python/2.7.0/test/test_compile.py)
==============================================================================
--- pypy/branch/fast-forward/lib-python/2.7.0/test/test_compile.py	(original)
+++ pypy/branch/fast-forward/lib-python/modified-2.7.0/test/test_compile.py	Tue Oct 26 21:36:34 2010
@@ -3,6 +3,7 @@
 import _ast
 from test import test_support
 import textwrap
+from test.test_support import check_impl_detail
 
 class TestSpecifics(unittest.TestCase):
 
@@ -90,12 +91,13 @@
         self.assertEqual(m.results, ('z', g))
         exec 'z = locals()' in g, m
         self.assertEqual(m.results, ('z', m))
-        try:
-            exec 'z = b' in m
-        except TypeError:
-            pass
-        else:
-            self.fail('Did not validate globals as a real dict')
+        if check_impl_detail():
+            try:
+                exec 'z = b' in m
+            except TypeError:
+                pass
+            else:
+                self.fail('Did not validate globals as a real dict')
 
         class A:
             "Non-mapping"



More information about the Pypy-commit mailing list