Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(12)

Unified Diff: Lib/test/test_concurrent_futures.py

Issue 10639: reindent.py converts newlines to platform default
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Lib/test/test_compileall.py ('k') | Lib/test/test_copy.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/test/test_concurrent_futures.py Tue Jul 26 09:37:46 2011 +0300
+++ b/Lib/test/test_concurrent_futures.py Mon Jul 25 09:47:18 2011 -0400
@@ -367,13 +367,6 @@
self.assertEqual([None, None], results)
- def test_shutdown_race_issue12456(self):
- # Issue #12456: race condition at shutdown where trying to post a
- # sentinel in the call queue blocks (the queue is full while processes
- # have exited).
- self.executor.map(str, [2] * (self.worker_count + 1))
- self.executor.shutdown()
-
class ThreadPoolExecutorTest(ThreadPoolMixin, ExecutorTest):
def test_map_submits_without_iteration(self):
@@ -623,21 +616,16 @@
self.assertTrue(isinstance(f1.exception(timeout=5), IOError))
-@test.support.reap_threads
def test_main():
- try:
- test.support.run_unittest(ProcessPoolExecutorTest,
- ThreadPoolExecutorTest,
- ProcessPoolWaitTests,
- ThreadPoolWaitTests,
- ProcessPoolAsCompletedTests,
- ThreadPoolAsCompletedTests,
- FutureTests,
- ProcessPoolShutdownTest,
- ThreadPoolShutdownTest,
- )
- finally:
- test.support.reap_children()
+ test.support.run_unittest(ProcessPoolExecutorTest,
+ ThreadPoolExecutorTest,
+ ProcessPoolWaitTests,
+ ThreadPoolWaitTests,
+ ProcessPoolAsCompletedTests,
+ ThreadPoolAsCompletedTests,
+ FutureTests,
+ ProcessPoolShutdownTest,
+ ThreadPoolShutdownTest)
if __name__ == "__main__":
test_main()
« no previous file with comments | « Lib/test/test_compileall.py ('k') | Lib/test/test_copy.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+