diff options
author | Łukasz Langa <lukasz@langa.pl> | 2013-04-24 01:29:26 +0200 |
---|---|---|
committer | Łukasz Langa <lukasz@langa.pl> | 2013-04-24 01:29:26 +0200 |
commit | 20ea96f29a8f232513ff4c7d0c16aee895176676 (patch) | |
tree | 702c4579f06dd43c25b4706ed4bec370fc69ca81 /Lib/test/test_threading.py | |
parent | fa608186b45918f8469cb72a53c016e9d88be821 (diff) | |
download | cpython-git-20ea96f29a8f232513ff4c7d0c16aee895176676.tar.gz |
backported rev 79713 from 3.4, test_recursion_limit skipped for -O0
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 e6b209da2a..79967dc0cf 100644 --- a/Lib/test/test_threading.py +++ b/Lib/test/test_threading.py @@ -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 |