Skip to content

Commit 0a6edab

Browse files
authored
Merge pull request #2905 from DimitrisJim/skip_deadlocks
Skip tests that cause RustPython to occasionally hang.
2 parents e277acc + d64cf86 commit 0a6edab

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

Lib/test/lock_tests.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ def f():
128128
self.assertFalse(result[0])
129129
lock.release()
130130

131+
@unittest.skip("TODO: RUSTPYTHON, sometimes hangs")
131132
def test_acquire_contended(self):
132133
lock = self.locktype()
133134
lock.acquire()
@@ -160,6 +161,7 @@ def _with(err=None):
160161
# Check the lock is unacquired
161162
Bunch(f, 1).wait_for_finished()
162163

164+
@unittest.skip("TODO: RUSTPYTHON, sometimes hangs")
163165
def test_thread_leak(self):
164166
# The lock shouldn't leak a Thread instance when used from a foreign
165167
# (non-threading) thread.

Lib/test/test_importlib/test_locks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ def f():
8787
self.assertEqual(len(results), NTHREADS)
8888
return results
8989

90+
@unittest.skip("TODO: RUSTPYTHON, sometimes hangs")
9091
def test_deadlock(self):
9192
results = self.run_deadlock_avoidance_test(True)
9293
# At least one of the threads detected a potential deadlock on its

0 commit comments

Comments
 (0)