From d541d3fee4bfee130cbec9ee6f9cf1a96c77ec3e Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sat, 13 Oct 2012 11:46:44 -0400 Subject: [PATCH] When not optimized function stack sizes are much larger and may cause this test to fail. --- Lib/test/test_threading.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py index 429febe035..13c017da1d 100644 --- a/Lib/test/test_threading.py +++ b/Lib/test/test_threading.py @@ -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 -- 2.50.1