Author: Philip Jenvey <pjen...@underboss.org>
Branch: py3.3
Changeset: r72541:3224b56f5c8e
Date: 2014-07-26 12:36 -0700
http://bitbucket.org/pypy/pypy/changeset/3224b56f5c8e/

Log:    skip new GIL API test

diff --git a/lib-python/3/test/test_sys.py b/lib-python/3/test/test_sys.py
--- a/lib-python/3/test/test_sys.py
+++ b/lib-python/3/test/test_sys.py
@@ -169,7 +169,8 @@
                 sys.setcheckinterval(n)
                 self.assertEqual(sys.getcheckinterval(), n)
 
-    @unittest.skipUnless(threading, 'Threading required for this test.')
+    @unittest.skipUnless(hasattr(sys, 'getswitchinterval') and threading,
+                         'New GIL & threading required for this test.')
     def test_switchinterval(self):
         self.assertRaises(TypeError, sys.setswitchinterval)
         self.assertRaises(TypeError, sys.setswitchinterval, "a")
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to