diff options
author | Benjamin Peterson <benjamin@python.org> | 2012-10-13 15:46:44 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2012-10-13 15:46:44 (GMT) |
commit | d541d3fee4bfee130cbec9ee6f9cf1a96c77ec3e (patch) | |
tree | b572ee65ed892f8af6420caf90683e3de08ce051 /Lib/test/test_threading.py | |
parent | 460498085467718f3a7c084638638711c2c3b4b4 (diff) | |
download | cpython-d541d3fee4bfee130cbec9ee6f9cf1a96c77ec3e.zip cpython-d541d3fee4bfee130cbec9ee6f9cf1a96c77ec3e.tar.gz cpython-d541d3fee4bfee130cbec9ee6f9cf1a96c77ec3e.tar.bz2 |
When not optimized function stack sizes are much larger and may cause this test to fail.
Diffstat (limited to 'Lib/test/test_threading.py')
-rw-r--r-- | Lib/test/test_threading.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py index 429febe..13c017d 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 |