summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_concurrent_futures.py
Commit message (Collapse)AuthorAgeFilesLines
* [3.6] bpo-31641: Allow arbitrary iterables in ↵Miss Islington (bot)2017-09-291-1/+5
| | | | | | | | `concurrent.futures.as_completed()` (GH-3830) (#3831) This was possible before. GH-1560 introduced a regression after 3.6.2 got released where only sequences were accepted now. This commit addresses this problem. (cherry picked from commit 574562c5ddb2f0429aab9af762442e6f9a3f26ab)
* [3.6] bpo-31234: Join threads in tests (#3589)Victor Stinner2017-09-151-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bpo-31234: Join threads in tests (#3572) Call thread.join() on threads to prevent the "dangling threads" warning. (cherry picked from commit 18e95b4176256f100429a806d0455406df98f984) * bpo-31234: Join threads in test_hashlib (#3573) * bpo-31234: Join threads in test_hashlib Use thread.join() to wait until the parallel hash tasks complete rather than using events. Calling thread.join() prevent "dangling thread" warnings. * test_hashlib: minor PEP 8 coding style fixes (cherry picked from commit 8dcf22f442320e4c1a5408e67b4c9002ad105f17) * bpo-31234: Join threads in test_threading (#3579) Call thread.join() to prevent the "dangling thread" warning. (cherry picked from commit b8c7be2c523b012e57915182543d06657161057f) * bpo-31234: Join threads in test_queue (#3586) Call thread.join() to prevent the "dangling thread" warning. (cherry picked from commit 167cbde50a88ec2a7d26b2cb9891d5e32bdfbfb5) * bpo-31234: Join timers in test_threading (#3598) Call the .join() method of threading.Timer timers to prevent the "threading_cleanup() failed to cleanup 1 threads" warning. (cherry picked from commit da3e5cf961f9bcc4bb376386cfe7a2865325086c)
* [3.6] bpo-31249: Fix test_concurrent_futures dangling thread (GH-3521) (#3522)Miss Islington (bot)2017-09-131-0/+3
| | | | | ProcessPoolShutdownTest.test_del_shutdown() now closes the call queue and joins its thread, to prevent leaking a dangling thread. (cherry picked from commit 3bcf157c115ba3e48bce62ac8cb13c703475a113)
* [3.6] bpo-29212: Fix the ugly repr() ThreadPoolExecutor thread name. ↵Gregory P. Smith2017-09-031-4/+3
| | | | | | | | | | (GH-2315) (#3276) bpo-29212: Fix the ugly ThreadPoolExecutor thread name. Fixes the newly introduced ugly default thread name for concurrent.futures thread.ThreadPoolExecutor threads. They'll now resemble the old <=3.5 threading default Thread-x names by being named ThreadPoolExecutor-y_n.. (cherry picked from commit a3d91b43c2851312fb942f31afa12f5961706db6)
* [3.6] Fix a c.f.as_completed() refleak previously introduced in bpo-27144 ↵Antoine Pitrou2017-09-031-1/+1
| | | | | (GH-3270) (#3271) (cherry picked from commit 2ef3760)
* [3.6] bpo-27144: concurrent.futures as_complete and map iterators do not ↵Antoine Pitrou2017-09-011-0/+48
| | | | | | | | keep reference to returned object (GH-1560) (#3266) bpo-27144: concurrent.futures as_complie and map iterators do not keep reference to returned object (cherry picked from commit 97e1b1c81458d2109b2ffed32ffa1eb643a6c3b9)
* bpo-31249: Fix ref cycle in ThreadPoolExecutor (#3253)Victor Stinner2017-09-011-12/+20
| | | [3.6] bpo-31249: Fix ref cycle in ThreadPoolExecutor
* bpo-30845: Enhance test_concurrent_futures cleanup (#2564) (#2880)Victor Stinner2017-07-261-0/+7
| | | | | | | | | | | | * bpo-30845: reap_children() now logs warnings * bpo-30845: Enhance test_concurrent_futures cleanup In setUp() and tearDown() methods of test_concurrent_futures tests, make sure that tests don't leak threads nor processes. Clear explicitly the reference to the executor to make it that it's destroyed (to prevent "dangling threads" warning). (cherry picked from commit 3df9dec425b0254df1cdf41922fd8d6b08bf47e4)
* Issue #27895: Spelling fixes (Contributed by Ville Skyttä).Raymond Hettinger2016-08-301-1/+1
|
* Issue #27664: Add to concurrent.futures.thread.ThreadPoolExecutor()Gregory P. Smith2016-08-071-0/+24
| | | | the ability to specify a thread name prefix.
* Issue #27076: Doc, comment and tests spelling fixesMartin Panter2016-05-261-2/+2
| | | | Most fixes to Doc/ and Lib/ directories by Ville Skyttä.
* Issue #9517: Move script_helper to the support package.Berker Peksag2015-05-061-1/+1
| | | | Patch by Christie Wilson.
* Issue #21817: When an exception is raised in a task submitted to a ↵Antoine Pitrou2015-01-171-0/+26
| | | | | | ProcessPoolExecutor, the remote traceback is now displayed in the parent process. Patch by Claudiu Popa.
* Issue #11271: concurrent.futures.Executor.map() now takes a *chunksize*Antoine Pitrou2014-10-041-0/+16
| | | | | argument to allow batching of tasks in child processes and improve performance of ProcessPoolExecutor. Patch by Dan O'Reilly.
* Closes #21527: Add default number of workers to ThreadPoolExecutor. (Claudiu ↵Guido van Rossum2014-09-021-0/+6
| | | | Popa.)
* Eliminate DeprecationWarning in test_concurrent_futures.R David Murray2014-06-111-3/+3
|
* Issue #21362: concurrent.futures does not validate that max_workers is properBrian Quinlan2014-05-171-0/+7
|
* Fix issue #20367: concurrent.futures.as_completed() for duplicate arguments.Guido van Rossum2014-01-261-0/+7
| | | | Patch by Glenn Langford.
* Issue #14407: Fix unittest test discovery in test_concurrent_futures.Antoine Pitrou2013-10-151-22/+13
|\
| * Issue #14407: Fix unittest test discovery in test_concurrent_futures.Antoine Pitrou2013-10-151-22/+13
| |
* | Issue #16284: Prevent keeping unnecessary references to worker functions in ↵Andrew Svetlov2012-11-031-0/+22
|/ | | | concurrent.futures ThreadPoolExecutor.
* Issue #14406: Fix a race condition when using ↵Antoine Pitrou2012-03-311-1/+17
|\ | | | | | | | | | | `concurrent.futures.wait(return_when=ALL_COMPLETED)`. Patch by Matt Joiner.
| * Issue #14406: Fix a race condition when using ↵Antoine Pitrou2012-03-311-1/+17
| | | | | | | | | | | | `concurrent.futures.wait(return_when=ALL_COMPLETED)`. Patch by Matt Joiner.
* | Merge with 3.2 for #12364.Ross Lagerwall2012-01-081-0/+6
|\ \ | |/
| * Issue #12364: Fix a hang in concurrent.futures.ProcessPoolExecutor.Ross Lagerwall2012-01-081-0/+6
| |
* | PEP 3151 / issue #12555: reworking the OS and IO exception hierarchy.Antoine Pitrou2011-10-121-7/+7
| |
* | Fix potential resource leaks in concurrent.futures.ProcessPoolExecutorAntoine Pitrou2011-07-151-1/+2
| | | | | | | | by joining all queues and processes when shutdown() is called.
* | Make sure to reap worker threads and processes at the end of ↵Antoine Pitrou2011-07-151-9/+13
|\ \ | |/ | | | | test_concurrent_futures
| * Make sure to reap worker threads and processes at the end of ↵Antoine Pitrou2011-07-151-9/+13
| | | | | | | | test_concurrent_futures
* | Issue #12456: fix a possible hang on shutdown of a ↵Antoine Pitrou2011-07-021-0/+7
| | | | | | | | concurrent.futures.ProcessPoolExecutor.
* | Issue #9205: concurrent.futures.ProcessPoolExecutor now detects killedAntoine Pitrou2011-06-081-5/+15
| | | | | | | | | | children and raises BrokenProcessPool in such a situation. Previously it would reliably freeze/deadlock.
* | Increases some test timeouts to fix issue 11864.Brian Quinlan2011-05-301-4/+4
| |
* | Issue #11777: Executor.map does not submit futures until iter.next() is calledBrian Quinlan2011-04-071-1/+9
|/
* Add tests for the atexit hook in concurrent.futures (part of #11635)Antoine Pitrou2011-03-241-15/+40
|
* Use shorter timings in test_concurrent_futures to make it a bit fasterAntoine Pitrou2011-03-221-9/+9
| | | | (it's still very slow)
* Removes the 'Call' class which is used to control execution order and is ↵Brian Quinlan2011-01-031-400/+167
| | | | unreliable on Windows
* Skip hanging test.Martin v. Löwis2011-01-031-0/+1
|
* Issue #10798: Reject supporting concurrent.futures if the system hasMartin v. Löwis2011-01-031-72/+58
| | | | too few POSIX semaphores.
* Does not install a logging handler. Fixes issue 10626.Brian Quinlan2010-12-281-10/+3
|
* Assign closed handles to None to make errors more obvious if they are used.Brian Quinlan2010-12-251-2/+2
|
* Better reporting of test failures on Windows.Brian Quinlan2010-12-241-3/+15
|
* #10273: Rename assertRegexpMatches and assertRaisesRegexp to assertRegex and ↵Ezio Melotti2010-12-011-10/+10
| | | | assertRaisesRegex.
* #9424: Replace deprecated assert* methods in the Python test suite.Ezio Melotti2010-11-201-43/+43
|
* Fixes a timing-related failure on Windows (issue 10183)Brian Quinlan2010-11-201-3/+3
|
* test_concurrent_futures: remove temporary hackVictor Stinner2010-11-071-4/+0
|
* test_concurrent_futures: dump ulimit -a to check a failure on x86 FreeBSD ↵Victor Stinner2010-11-061-0/+4
| | | | 7.2 3.x, buildbot
* Fixes 9903: test_concurrent_futures writes on stderrBrian Quinlan2010-10-061-19/+31
|
* Initial implementation of PEP 3148Brian Quinlan2010-09-181-0/+817