summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_concurrent_futures.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-07-15 23:13:34 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-07-15 23:13:34 (GMT)
commitd06a065a441896477f8dc4f5543654f6ba20bb51 (patch)
treee5914db2b6a27f0ccb55b74ce7fe0862c8f67c68 /Lib/test/test_concurrent_futures.py
parentdb535957cd4b44c6176e49dc2d28f034ece5262c (diff)
downloadcpython-d06a065a441896477f8dc4f5543654f6ba20bb51.zip
cpython-d06a065a441896477f8dc4f5543654f6ba20bb51.tar.gz
cpython-d06a065a441896477f8dc4f5543654f6ba20bb51.tar.bz2
Fix potential resource leaks in concurrent.futures.ProcessPoolExecutor
by joining all queues and processes when shutdown() is called.
Diffstat (limited to 'Lib/test/test_concurrent_futures.py')
-rw-r--r--Lib/test/test_concurrent_futures.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_concurrent_futures.py b/Lib/test/test_concurrent_futures.py
index 222bd54..78a9906 100644
--- a/Lib/test/test_concurrent_futures.py
+++ b/Lib/test/test_concurrent_futures.py
@@ -634,7 +634,8 @@ def test_main():
ThreadPoolAsCompletedTests,
FutureTests,
ProcessPoolShutdownTest,
- ThreadPoolShutdownTest)
+ ThreadPoolShutdownTest,
+ )
finally:
test.support.reap_children()