33 lines
1.0 KiB
Diff
33 lines
1.0 KiB
Diff
From 718654e8142d229655d7322dbc2ede8855270e58 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Alex=20Gr=C3=B6nholm?= <alex.gronholm@nextday.fi>
|
|
Date: Wed, 29 Nov 2017 23:06:58 +0200
|
|
Subject: [PATCH] Fixed tests hanging on PyPy
|
|
|
|
---
|
|
test_futures.py | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/test_futures.py b/test_futures.py
|
|
index 95a3ca2..d5b3499 100644
|
|
--- a/test_futures.py
|
|
+++ b/test_futures.py
|
|
@@ -236,6 +236,7 @@ class ThreadPoolShutdownTest(ThreadPoolMixin, ExecutorShutdownTest):
|
|
executor.map(abs, range(-5, 5))
|
|
threads = executor._threads
|
|
del executor
|
|
+ gc.collect()
|
|
|
|
for t in threads:
|
|
self.assertRegexpMatches(t.name, r'^SpecialPool_[0-4]$')
|
|
@@ -246,6 +247,7 @@ class ThreadPoolShutdownTest(ThreadPoolMixin, ExecutorShutdownTest):
|
|
executor.map(abs, range(-5, 5))
|
|
threads = executor._threads
|
|
del executor
|
|
+ gc.collect()
|
|
|
|
for t in threads:
|
|
# Ensure that our default name is reasonably sane and unique when
|
|
--
|
|
2.39.0.windows.2
|
|
|