mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-09 22:49:57 +09:00
Merge pull request #2905 from DimitrisJim/skip_deadlocks
Skip tests that cause RustPython to occasionally hang.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user