]> granicus.if.org Git - python/commitdiff
backported rev 79713 from 3.4, test_recursion_limit skipped for -O0
authorŁukasz Langa <lukasz@langa.pl>
Tue, 23 Apr 2013 23:29:26 +0000 (01:29 +0200)
committerŁukasz Langa <lukasz@langa.pl>
Tue, 23 Apr 2013 23:29:26 +0000 (01:29 +0200)
Lib/test/test_threading.py

index e6b209da2a15812b5d352ed0f4ff57c33ee1f8f6..79967dc0cf62b239899dbf4b67ac07a8497b6d2a 100644 (file)
@@ -754,7 +754,8 @@ class ThreadingExceptionTests(BaseTestCase):
         lock = threading.Lock()
         self.assertRaises(RuntimeError, lock.release)
 
-    @unittest.skipUnless(sys.platform == 'darwin', 'test macosx problem')
+    @unittest.skipUnless(sys.platform == 'darwin' and test.support.python_is_optimized(),
+                         'test macosx problem')
     def test_recursion_limit(self):
         # Issue 9670
         # test that excessive recursion within a non-main thread causes