]> granicus.if.org Git - python/commitdiff
When not optimized function stack sizes are much larger and may cause this test to...
authorBenjamin Peterson <benjamin@python.org>
Sat, 13 Oct 2012 15:46:44 +0000 (11:46 -0400)
committerBenjamin Peterson <benjamin@python.org>
Sat, 13 Oct 2012 15:46:44 +0000 (11:46 -0400)
Lib/test/test_threading.py

index 429febe0357145584b2ea85a934f1f134212b7df..13c017da1daf5470a2792a7f6dee107f2af6a1d7 100644 (file)
@@ -753,7 +753,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