summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorŁukasz Langa <lukasz@langa.pl>2013-04-23 23:29:26 (GMT)
committerŁukasz Langa <lukasz@langa.pl>2013-04-23 23:29:26 (GMT)
commit20ea96f29a8f232513ff4c7d0c16aee895176676 (patch)
tree702c4579f06dd43c25b4706ed4bec370fc69ca81
parentfa608186b45918f8469cb72a53c016e9d88be821 (diff)
downloadcpython-20ea96f29a8f232513ff4c7d0c16aee895176676.zip
cpython-20ea96f29a8f232513ff4c7d0c16aee895176676.tar.gz
cpython-20ea96f29a8f232513ff4c7d0c16aee895176676.tar.bz2
backported rev 79713 from 3.4, test_recursion_limit skipped for -O0
-rw-r--r--Lib/test/test_threading.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py
index e6b209d..79967dc 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