summaryrefslogtreecommitdiffstats
path: root/Lib/test/_test_multiprocessing.py
Commit message (Collapse)AuthorAgeFilesLines
* [3.5] Clear potential ref cycle between Process and Process target (GH-2470) ↵Antoine Pitrou2017-06-281-0/+18
| | | | | | | | | | | (#2472) * Clear potential ref cycle between Process and Process target Besides Process.join() not being called, this was an indirect cause of bpo-30775. The threading module already does this. * Add issue reference. (cherry picked from commit 79d37ae979a65ada0b2ac820279ccc3b1cd41ba6)
* [3.5] bpo-30775: Fix refleaks in test_multiprocessing (GH-2467) (#2469)Antoine Pitrou2017-06-281-2/+17
| | | | Forgetting to call Process.join() can keep some resources alive. (cherry picked from commit a79f8faccf5e26f55e8b9496ad49d2071b5e299c)
* [3.5] bpo-24484: Avoid race condition in multiprocessing cleanup (GH-2159) ↵Antoine Pitrou2017-06-131-0/+63
| | | | | | | | | | | | | (#2167) * bpo-24484: Avoid race condition in multiprocessing cleanup The finalizer registry can be mutated while inspected by multiprocessing at process exit. * Use test.support.start_threads() * Add Misc/NEWS. (cherry picked from commit 1eb6c0074d17f4fd425cacfdda893d65f5f77f0a)
* [3.5] bpo-30414: multiprocessing.Queue._feed do not break from main loop on ↵Antoine Pitrou2017-05-251-0/+14
| | | | | | | | | | | | | | | | | | exc (GH-1683) (#1816) * bpo-30414: multiprocesing.Queue._feed do not break from main loop on exc Queue background running thread was not handling exceptions correctly. Any exception occurred inside thread (putting unpickable object) cause feeder to finish running. After that every message put into queue is silently ignored. * bpo-30414: multiprocesing.Queue._feed do not break from main loop on exc Queue background running thread was not handling exceptions correctly. Any exception occurred inside thread (putting unpickable object) cause feeder to finish running. After that every message put into queue is silently ignored. (cherry picked from commit bc50f03db4f58c869b78e98468e374d7e61f1227)
* bpo-30301: Fix AttributeError when using SimpleQueue.empty() (#1601) (#1627)Xiang Zhang2017-05-171-0/+36
| | | | Under *spawn* and *forkserver* start methods, SimpleQueue.empty() could raise AttributeError due to not setting _poll in __setstate__.
* Relax test timing (bpo-29861) to avoid sporadic failures (#1120) (#1133)Antoine Pitrou2017-04-141-0/+1
| | | (cherry picked from commit 685cdb9acc3fca04a9897d88b89771ddfd50e772)
* bpo-28699: fix abnormal behaviour of pools in multiprocessing.pool (GH-884)Xiang Zhang2017-03-291-1/+58
| | | | an exception raised at the very first of an iterable would cause pools behave abnormally (swallow the exception or hang)
* bpo-29861: release references to multiprocessing Pool tasks (#743) (#801)Antoine Pitrou2017-03-241-0/+28
| | | | | | | | | | | | | | | | * bpo-29861: release references to multiprocessing Pool tasks (#743) * bpo-29861: release references to multiprocessing Pool tasks Release references to tasks, their arguments and their results as soon as they are finished, instead of keeping them alive until another task arrives. * Comments in test (cherry picked from commit 8988945cdc27ffa86ba8c624e095b51c459f5154) * Fix Misc/NEWS??
* Issue #28779: multiprocessing.set_forkserver_preload() would crash the ↵Antoine Pitrou2016-12-101-0/+13
| | | | forkserver process if a preloaded module instantiated some multiprocessing objects such as locks.
* Issue #27895: Spelling fixes (Contributed by Ville Skyttä).Martin Panter2016-09-071-1/+1
|
* Issue #25654:Victor Stinner2016-03-251-5/+13
| | | | | | | | | * multiprocessing: open file with closefd=False to avoid ResourceWarning * _test_multiprocessing: open file with O_EXCL to detect bugs in tests (if a previous test forgot to remove TESTFN) * test_sys_exit(): remove TESTFN after each loop iteration Initial patch written by Serhiy Storchaka.
* Issue #26523: The multiprocessing thread pool (multiprocessing.dummy.Pool) ↵Antoine Pitrou2016-03-151-9/+16
| | | | was untested.
* Fix remaining tests and remove an unused import.Berker Peksag2015-05-061-3/+3
|
* Issue #23713: Fixed fragility of test_imap_unordered_handle_iterable_exception.Serhiy Storchaka2015-04-231-2/+8
|\ | | | | | | Patch by Davin Potts.
| * Issue #23713: Fixed fragility of test_imap_unordered_handle_iterable_exception.Serhiy Storchaka2015-04-231-2/+8
| | | | | | | | Patch by Davin Potts.
* | Issue #23051: multiprocessing.Pool methods imap() and imap_unordered() nowSerhiy Storchaka2015-03-131-0/+46
|\ \ | |/ | | | | | | handle exceptions raised by an iterator. Patch by Alon Diamant and Davin Potts.
| * Issue #23051: multiprocessing.Pool methods imap() and imap_unordered() nowSerhiy Storchaka2015-03-131-0/+46
| | | | | | | | | | handle exceptions raised by an iterator. Patch by Alon Diamant and Davin Potts.
* | Issue #22853: Added regression test for using multiprocessing.Queue at importSerhiy Storchaka2015-03-061-0/+21
|\ \ | |/ | | | | time. Patch by Davin Potts.
| * Issue #22853: Added regression test for using multiprocessing.Queue at importSerhiy Storchaka2015-03-061-0/+21
| | | | | | | | time. Patch by Davin Potts.
* | Issue #21849: Ported from 2.7 tests for non-ASCII data.Serhiy Storchaka2015-02-131-7/+13
|\ \ | |/
| * Issue #21849: Ported from 2.7 tests for non-ASCII data.Serhiy Storchaka2015-02-131-7/+13
| |
* | (Merge 3.4) test_multiprocessing: tolerate a delta of 30 ms because of badVictor Stinner2015-02-051-2/+4
|\ \ | |/ | | | | clock resolution on Windows
| * test_multiprocessing: tolerate a delta of 30 ms because of bad clock resolutionVictor Stinner2015-02-051-2/+4
| | | | | | | | on Windows
* | Issue #21566: Make use of socket.listen() default backlog.Charles-François Natali2014-07-231-2/+2
|/
* Issue #20980: Stop wrapping exception when using ThreadPool.Richard Oudkerk2014-03-231-0/+11
|
* Issue #20114: Double timeout in test_semaphore_tracker() to reduceRichard Oudkerk2014-02-211-1/+1
| | | | chance of sporadic failures.
* Issue #20315: Removed support for backward compatibility with early 2.x ↵Serhiy Storchaka2014-01-201-3/+0
| | | | | | | versions. Removed backward compatibility alias curses.window.nooutrefresh which should be removed in 2.3.
* Issue #19936: Added executable bits or shebang lines to Python scripts whichSerhiy Storchaka2014-01-161-2/+0
| | | | | | | requires them. Disable executable bits and shebang lines in test and benchmark files in order to prevent using a random system python, and in source files of modules which don't provide command line interface. Fixed shebang lines in the unittestgui and checkpip scripts.
* Issue 19572: More silently skipped tests explicitly skipped.Zachary Ware2013-12-081-11/+11
|
* Merge.Richard Oudkerk2013-11-171-1/+1
|
* Merge.Richard Oudkerk2013-11-171-1/+1
|
* Merge.Richard Oudkerk2013-11-021-1/+1
|
* Merge.Richard Oudkerk2013-10-281-0/+10
|
* Remove test_sigterm().Richard Oudkerk2013-10-181-41/+0
|
* Fix signal handler in test.Richard Oudkerk2013-10-171-1/+5
|
* Try doing a raw test of os.fork()/os.kill().Richard Oudkerk2013-10-171-5/+36
|
* Stop trying to use strace, but add a sleep before terminate().Richard Oudkerk2013-10-171-8/+4
|
* Try strace instead of gdb to see what wedged child is doing.Richard Oudkerk2013-10-171-4/+6
|
* Try to print a backtrace of wedged child process in test.Richard Oudkerk2013-10-171-0/+13
|
* Issue #18999: Make multiprocessing use context objects.Richard Oudkerk2013-10-161-5/+37
| | | | | This allows different parts of a program to use different methods for starting processes without interfering with each other.
* MergeRichard Oudkerk2013-10-151-1/+1
|
* Merge.Richard Oudkerk2013-10-121-2/+14
|
* Merge.Richard Oudkerk2013-09-291-8/+9
|
* merge 3.3 (#19112)Benjamin Peterson2013-09-291-7/+6
|
* Issue #18934: Relax test_multiprocessing.test_invalid_handles a bit: we justCharles-François Natali2013-09-061-1/+4
| | | | want to check that Connection.poll() doesn't crash.
* Issue #8713: Print dangling processes/threads, if any.Richard Oudkerk2013-08-291-2/+17
|
* Issue #8713: Test should not print message about start method.Richard Oudkerk2013-08-291-1/+0
|
* Issue #18786: Don't reinstall old SIGUSR1 handler prematurely.Richard Oudkerk2013-08-281-5/+7
|
* Make test for semaphore tracker capture and check the debug output.Richard Oudkerk2013-08-221-7/+7
|
* Issue #18792: Use "127.0.0.1" or "::1" instead of "localhost" as much as ↵Antoine Pitrou2013-08-211-5/+5
| | | | possible, since "localhost" goes through a DNS lookup under recent Windows versions.