]> granicus.if.org Git - python/commit
bpo-33097: Fix submit accepting callable after executor shutdown by interpreter exit...
authorMark Nemec <mrknmc@me.com>
Tue, 10 Apr 2018 17:23:14 +0000 (18:23 +0100)
committerAntoine Pitrou <pitrou@free.fr>
Tue, 10 Apr 2018 17:23:14 +0000 (19:23 +0200)
commitc4b695f85e141f57d22d8edf7bc2c756da136918
tree73fee6f3f23c9d7b0496a27de71c4ca319b793f6
parentf178028f37c9dafb72608b719eb03e5a70af4ff5
bpo-33097: Fix submit accepting callable after executor shutdown by interpreter exit (GH-6144)

Executors in concurrent.futures accepted tasks after executor was shutdown by interpreter exit. Tasks were left in PENDING state forever. This fix changes submit to instead raise a RuntimeError.
Lib/concurrent/futures/process.py
Lib/concurrent/futures/thread.py
Lib/test/test_concurrent_futures.py
Misc/NEWS.d/next/Library/2018-03-18-16-48-23.bpo-33097.Yl4gI2.rst [new file with mode: 0644]