Merge pull request #2905 from DimitrisJim/skip_deadlocks

Skip tests that cause RustPython to occasionally hang.
This commit is contained in:
Jim Fasarakis-Hilliard
2021-08-18 21:09:13 +03:00
committed by GitHub
2 changed files with 3 additions and 0 deletions

View File

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

View File

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