Commit 2d366e1
pythongh-113205: test_multiprocessing.test_terminate: Test the API on threadpools (python#114186)
pythongh-113205: test_multiprocessing.test_terminate: Test the API works on threadpools
Threads can't be forced to terminate (without potentially corrupting too much
state), so the expected behaviour of `ThreadPool.terminate` is to wait for
the currently executing tasks to finish.
The entire test was skipped in pythonGH-110848 (0e9c364).
Instead of skipping it entirely, we should ensure the API eventually succeeds:
use a shorter timeout.
For the record: on my machine, when the test is un-skipped, the task manages to
start in about 1.5% cases.1 parent 1035112 commit 2d366e1
1 file changed
+8
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2693 | 2693 | | |
2694 | 2694 | | |
2695 | 2695 | | |
| 2696 | + | |
| 2697 | + | |
| 2698 | + | |
2696 | 2699 | | |
2697 | | - | |
| 2700 | + | |
| 2701 | + | |
| 2702 | + | |
| 2703 | + | |
2698 | 2704 | | |
2699 | | - | |
2700 | 2705 | | |
2701 | | - | |
| 2706 | + | |
2702 | 2707 | | |
2703 | 2708 | | |
2704 | 2709 | | |
| |||
0 commit comments