backported rev 79713 from 3.4, test_recursion_limit skipped for -O0

This commit is contained in:
Łukasz Langa 2013-04-24 01:29:26 +02:00
parent fa608186b4
commit 20ea96f29a
1 changed files with 2 additions and 1 deletions

View File

@ -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