diff --git a/Lib/test/lock_tests.py b/Lib/test/lock_tests.py index 7b1ad8eb6..f7bcba064 100644 --- a/Lib/test/lock_tests.py +++ b/Lib/test/lock_tests.py @@ -128,6 +128,7 @@ class BaseLockTests(BaseTestCase): self.assertFalse(result[0]) lock.release() + @unittest.skip("TODO: RUSTPYTHON, sometimes hangs") def test_acquire_contended(self): lock = self.locktype() lock.acquire() @@ -160,6 +161,7 @@ class BaseLockTests(BaseTestCase): # Check the lock is unacquired Bunch(f, 1).wait_for_finished() + @unittest.skip("TODO: RUSTPYTHON, sometimes hangs") def test_thread_leak(self): # The lock shouldn't leak a Thread instance when used from a foreign # (non-threading) thread. diff --git a/Lib/test/test_importlib/test_locks.py b/Lib/test/test_importlib/test_locks.py index d2577d403..e97a50811 100644 --- a/Lib/test/test_importlib/test_locks.py +++ b/Lib/test/test_importlib/test_locks.py @@ -87,6 +87,7 @@ class DeadlockAvoidanceTests: self.assertEqual(len(results), NTHREADS) return results + @unittest.skip("TODO: RUSTPYTHON, sometimes hangs") def test_deadlock(self): results = self.run_deadlock_avoidance_test(True) # At least one of the threads detected a potential deadlock on its