From: Ɓukasz Langa Date: Tue, 23 Apr 2013 23:29:26 +0000 (+0200) Subject: backported rev 79713 from 3.4, test_recursion_limit skipped for -O0 X-Git-Tag: v3.3.2~62 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=20ea96f29a8f232513ff4c7d0c16aee895176676;p=thirdparty%2FPython%2Fcpython.git backported rev 79713 from 3.4, test_recursion_limit skipped for -O0 --- diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py index e6b209da2a15..79967dc0cf62 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