From c0854abfc9612753557b1f75fbd214ea2391cd8e Mon Sep 17 00:00:00 2001 From: Ronald Oussoren Date: Fri, 2 Aug 2019 07:33:42 +0200 Subject: [PATCH] bpo-18049: Reintroduce platform guard in recursion limit test A previous PR fixed and issue with recursion in threads on macOS and completely removed the platform guard. Removing this guard broke tests on AIX, therefore reintroducing a guard that only runs this test on macOS. --- Lib/test/test_threading.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py index 1466d25e948283d..658bc1c7a0386c5 100644 --- a/Lib/test/test_threading.py +++ b/Lib/test/test_threading.py @@ -1057,6 +1057,7 @@ def test_releasing_unacquired_lock(self): lock = threading.Lock() self.assertRaises(RuntimeError, lock.release) + @unittest.skipUnless(sys.platform == 'darwin', 'test macos problem') def test_recursion_limit(self): # Issue 9670 # test that excessive recursion within a non-main thread causes