Skip to content

Commit 5e5b6cc

Browse files
committed
issue #147: remove deadlock tests
The new logic is not affected by those deadlocks anymore.
1 parent 5c67c41 commit 5e5b6cc

File tree

3 files changed

+0
-24
lines changed

3 files changed

+0
-24
lines changed

test/test_process_pool_fork.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -833,14 +833,6 @@ def test_pool_deadlock(self):
833833
with self.assertRaises(pebble.ProcessExpired):
834834
pool.schedule(function).result()
835835

836-
def test_pool_deadlock_stop(self):
837-
"""Process Pool Fork writing deadlocks are stopping the Pool."""
838-
with self.assertRaises(RuntimeError):
839-
pool = pebble.ProcessPool(max_workers=1, context=mp_context)
840-
for _ in range(10):
841-
pool.schedule(function)
842-
time.sleep(0.2)
843-
844836

845837
@unittest.skipIf(not supported, "Start method is not supported")
846838
class TestProcessPoolDeadlockOnCancelLargeData(unittest.TestCase):

test/test_process_pool_forkserver.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -834,14 +834,6 @@ def test_pool_deadlock(self):
834834
with self.assertRaises(pebble.ProcessExpired):
835835
pool.schedule(function).result()
836836

837-
def test_pool_deadlock_stop(self):
838-
"""Process Pool Forkserver writing deadlocks are stopping the Pool."""
839-
with self.assertRaises(RuntimeError):
840-
pool = pebble.ProcessPool(max_workers=1, context=mp_context)
841-
for _ in range(10):
842-
pool.schedule(function)
843-
time.sleep(0.2)
844-
845837

846838
@unittest.skipIf(not supported, "Start method is not supported")
847839
class TestProcessPoolDeadlockOnCancelLargeData(unittest.TestCase):

test/test_process_pool_spawn.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -832,14 +832,6 @@ def test_pool_deadlock(self):
832832
with self.assertRaises(pebble.ProcessExpired):
833833
pool.schedule(function).result()
834834

835-
def test_pool_deadlock_stop(self):
836-
"""Process Pool Spawn writing deadlocks are stopping the Pool."""
837-
with self.assertRaises(RuntimeError):
838-
pool = pebble.ProcessPool(max_workers=1, context=mp_context)
839-
for _ in range(10):
840-
pool.schedule(function)
841-
time.sleep(0.2)
842-
843835

844836
@unittest.skipIf(not supported, "Start method is not supported")
845837
class TestProcessPoolDeadlockOnCancelLargeData(unittest.TestCase):

0 commit comments

Comments
 (0)