[pypy-svn] r60907 - pypy/trunk/lib-python/modified-2.5.2/test

antocuni at codespeak.net antocuni at codespeak.net
Mon Jan 12 17:58:01 CET 2009


Author: antocuni
Date: Mon Jan 12 17:57:59 2009
New Revision: 60907

Modified:
   pypy/trunk/lib-python/modified-2.5.2/test/test_compile.py
Log:
(antocuni, arigato around) mark this test as impl detail, as pypy is less strict



Modified: pypy/trunk/lib-python/modified-2.5.2/test/test_compile.py
==============================================================================
--- pypy/trunk/lib-python/modified-2.5.2/test/test_compile.py	(original)
+++ pypy/trunk/lib-python/modified-2.5.2/test/test_compile.py	Mon Jan 12 17:57:59 2009
@@ -2,6 +2,7 @@
 import warnings
 import sys
 from test import test_support
+from test.test_support import check_impl_detail
 
 class TestSpecifics(unittest.TestCase):
 
@@ -76,12 +77,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 NameError:
-            pass
-        else:
-            self.fail('PyPy should accept not real dict globals ')
+        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