Commits

Philip Jenvey  committed bd675fc

pypy doesn't support the optimize compile flag

  • Participants
  • Parent commits 6719c0d
  • Branches py3k

Comments (0)

Files changed (1)

File lib-python/3.2/test/test_builtin.py

 import builtins
 import random
 import traceback
-from test.support import fcmp, TESTFN, unlink,  run_unittest, check_warnings
+from test.support import (TESTFN, check_impl_detail, check_warnings, fcmp,
+                          run_unittest, unlink)
 from operator import neg
 try:
     import pty, signal
         self.assertRaises(ValueError, compile, str('a = 1'), 'f', 'bad')
 
         # test the optimize argument
+        if check_impl_detail(pypy=True):
+            return
 
         codestr = '''def f():
         """doc"""