Antoine Pitrou
2ef37607b7
Fix a c.f.as_completed() refleak previously introduced in bpo-27144 ( #3270 )
2017-09-03 15:09:23 +02:00
Grzegorz Grzywacz
97e1b1c814
bpo-27144: concurrent.futures as_complete and map iterators do not keep reference to returned object ( #1560 )
...
* bpo-27144: concurrent.futures as_complie and map iterators do not keep
reference to returned object
* Some nits. Improve wordings in docstrings and comments, and avoid relying on
sys.getrefcount() in tests.
2017-09-01 18:54:00 +02:00
Victor Stinner
489d91c61d
bpo-31249: test_concurrent_futures checks dangling threads ( #3167 )
...
Add a BaseTestCase class to test_concurrent_futures to check for
dangling threads and processes on all tests, not only tests using
ExecutorMixin.
2017-08-21 23:24:24 +02:00
Victor Stinner
3df9dec425
bpo-30845: Enhance test_concurrent_futures cleanup ( #2564 )
...
* 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).
2017-07-04 13:14:04 +02:00
Gregory P. Smith
a3d91b43c2
bpo-29212: Fix the ugly repr() ThreadPoolExecutor thread name. ( #2315 )
...
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.
2017-06-21 23:41:13 -07:00
Raymond Hettinger
15f44ab043
Issue #27895 : Spelling fixes (Contributed by Ville Skyttä).
2016-08-30 10:47:49 -07:00
Gregory P. Smith
50abe877ee
Issue #27664 : Add to concurrent.futures.thread.ThreadPoolExecutor()
...
the ability to specify a thread name prefix.
2016-08-07 10:19:20 -07:00
Martin Panter
46f50726a0
Issue #27076 : Doc, comment and tests spelling fixes
...
Most fixes to Doc/ and Lib/ directories by Ville Skyttä.
2016-05-26 05:35:26 +00:00
Berker Peksag
ce643913a9
Issue #9517 : Move script_helper to the support package.
...
Patch by Christie Wilson.
2015-05-06 06:33:17 +03:00
Antoine Pitrou
1285c9b782
Issue #21817 : When an exception is raised in a task submitted to a ProcessPoolExecutor, the remote traceback is now displayed in the parent process.
...
Patch by Claudiu Popa.
2015-01-17 20:02:14 +01:00
Antoine Pitrou
4aae276eca
Issue #11271 : concurrent.futures.Executor.map() now takes a *chunksize*
...
argument to allow batching of tasks in child processes and improve
performance of ProcessPoolExecutor. Patch by Dan O'Reilly.
2014-10-04 20:20:10 +02:00
Guido van Rossum
cfd4661e78
Closes #21527 : Add default number of workers to ThreadPoolExecutor. (Claudiu Popa.)
2014-09-02 10:39:18 -07:00
R David Murray
475a476237
Eliminate DeprecationWarning in test_concurrent_futures.
2014-06-11 16:25:05 -04:00
Brian Quinlan
20efceb757
Issue #21362 : concurrent.futures does not validate that max_workers is proper
2014-05-17 13:51:10 -07:00
Guido van Rossum
e6994ff6e3
Fix issue #20367 : concurrent.futures.as_completed() for duplicate arguments.
...
Patch by Glenn Langford.
2014-01-26 09:57:51 -08:00
Antoine Pitrou
355dda8d17
Issue #14407 : Fix unittest test discovery in test_concurrent_futures.
2013-10-15 23:24:44 +02:00
Antoine Pitrou
9816a1e643
Issue #14407 : Fix unittest test discovery in test_concurrent_futures.
2013-10-15 23:23:32 +02:00
Andrew Svetlov
6b973747f3
Issue #16284 : Prevent keeping unnecessary references to worker functions in concurrent.futures ThreadPoolExecutor.
2012-11-03 15:36:01 +02:00
Antoine Pitrou
8b34b53c52
Issue #14406 : Fix a race condition when using `concurrent.futures.wait(return_when=ALL_COMPLETED)`.
...
Patch by Matt Joiner.
2012-03-31 20:25:22 +02:00
Antoine Pitrou
f70401e842
Issue #14406 : Fix a race condition when using `concurrent.futures.wait(return_when=ALL_COMPLETED)`.
...
Patch by Matt Joiner.
2012-03-31 20:23:30 +02:00
Ross Lagerwall
66e2fb68ac
Issue #12364 : Fix a hang in concurrent.futures.ProcessPoolExecutor.
2012-01-08 08:29:40 +02:00
Ross Lagerwall
69f39a53f6
Merge with 3.2 for #12364 .
2012-01-08 08:42:03 +02:00
Antoine Pitrou
6b4883dec0
PEP 3151 / issue #12555 : reworking the OS and IO exception hierarchy.
2011-10-12 02:54:14 +02:00
Antoine Pitrou
d06a065a44
Fix potential resource leaks in concurrent.futures.ProcessPoolExecutor
...
by joining all queues and processes when shutdown() is called.
2011-07-16 01:13:34 +02:00
Antoine Pitrou
8f629059db
Make sure to reap worker threads and processes at the end of test_concurrent_futures
2011-07-15 20:26:35 +02:00
Antoine Pitrou
9470ab43a9
Make sure to reap worker threads and processes at the end of test_concurrent_futures
2011-07-15 20:25:20 +02:00
Antoine Pitrou
020436b0d4
Issue #12456 : fix a possible hang on shutdown of a concurrent.futures.ProcessPoolExecutor.
2011-07-02 21:20:25 +02:00
Antoine Pitrou
dd69649660
Issue #9205 : concurrent.futures.ProcessPoolExecutor now detects killed
...
children and raises BrokenProcessPool in such a situation. Previously it
would reliably freeze/deadlock.
2011-06-08 17:21:55 +02:00
Brian Quinlan
1ae2998f3e
Increases some test timeouts to fix issue 11864.
2011-05-30 21:52:24 +10:00
Brian Quinlan
f007876bd6
Issue #11777 : Executor.map does not submit futures until iter.next() is called
2011-04-08 08:19:33 +10:00
Antoine Pitrou
aebac0b55a
Add tests for the atexit hook in concurrent.futures (part of #11635 )
2011-03-24 15:47:39 +01:00
Antoine Pitrou
8e5e942c59
Use shorter timings in test_concurrent_futures to make it a bit faster
...
(it's still very slow)
2011-03-22 18:30:30 +01:00
Brian Quinlan
1d1df8257f
Removes the 'Call' class which is used to control execution order and is unreliable on Windows
2011-01-03 02:56:39 +00:00
Martin v. Löwis
23eaa70057
Skip hanging test.
2011-01-03 00:19:59 +00:00
Martin v. Löwis
9f6d48ba4e
Issue #10798 : Reject supporting concurrent.futures if the system has
...
too few POSIX semaphores.
2011-01-03 00:07:01 +00:00
Brian Quinlan
251cc846f3
Does not install a logging handler. Fixes issue 10626.
2010-12-28 21:14:34 +00:00
Brian Quinlan
291151b7f4
Assign closed handles to None to make errors more obvious if they are used.
2010-12-25 00:18:27 +00:00
Brian Quinlan
a3015a6a82
Better reporting of test failures on Windows.
2010-12-24 23:10:41 +00:00
Ezio Melotti
ed3a7d2d60
#10273 : Rename assertRegexpMatches and assertRaisesRegexp to assertRegex and assertRaisesRegex.
2010-12-01 02:32:32 +00:00
Ezio Melotti
b3aedd4862
#9424 : Replace deprecated assert* methods in the Python test suite.
2010-11-20 19:04:17 +00:00
Brian Quinlan
b304d0b46f
Fixes a timing-related failure on Windows (issue 10183)
2010-11-20 04:09:35 +00:00
Victor Stinner
2e598faade
test_concurrent_futures: remove temporary hack
2010-11-07 04:36:56 +00:00
Victor Stinner
7322fcf84b
test_concurrent_futures: dump ulimit -a to check a failure on x86 FreeBSD 7.2 3.x, buildbot
2010-11-06 13:10:29 +00:00
Brian Quinlan
1e2ae4f054
Fixes 9903: test_concurrent_futures writes on stderr
2010-10-06 13:05:45 +00:00
Brian Quinlan
81c4d36928
Initial implementation of PEP 3148
2010-09-18 22:35:02 +00:00