diff options
author | Brian Quinlan <brian@sweetapp.com> | 2019-05-08 14:04:53 -0400 |
---|---|---|
committer | Steve Dower <steve.dower@python.org> | 2019-05-08 14:04:53 -0400 |
commit | 39889864c09741909da4ec489459d0197ea8f1fc (patch) | |
tree | 08f7745e5ca5554a14f6b583a4ee8d345d3fe4b7 /Lib/test/test_concurrent_futures.py | |
parent | bpo-24758: Improve the error msg for unittest.mock.Mock()'s unsafe mode (#12991) (diff) | |
download | cpython-39889864c09741909da4ec489459d0197ea8f1fc.tar.gz cpython-39889864c09741909da4ec489459d0197ea8f1fc.tar.bz2 cpython-39889864c09741909da4ec489459d0197ea8f1fc.zip |
bpo-26903: Limit ProcessPoolExecutor to 61 workers on Windows (GH-13132)
Co-Authored-By: brianquinlan <brian@sweetapp.com>
Diffstat (limited to 'Lib/test/test_concurrent_futures.py')
-rw-r--r-- | Lib/test/test_concurrent_futures.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/test_concurrent_futures.py b/Lib/test/test_concurrent_futures.py index 903afbd2a4f..3c963dff1db 100644 --- a/Lib/test/test_concurrent_futures.py +++ b/Lib/test/test_concurrent_futures.py @@ -755,6 +755,13 @@ class ThreadPoolExecutorTest(ThreadPoolMixin, ExecutorTest, BaseTestCase): class ProcessPoolExecutorTest(ExecutorTest): + + @unittest.skipUnless(sys.platform=='win32', 'Windows-only process limit') + def test_max_workers_too_large(self): + with self.assertRaisesRegex(ValueError, + "max_workers must be <= 61"): + futures.ProcessPoolExecutor(max_workers=62) + def test_killed_child(self): # When a child process is abruptly terminated, the whole pool gets # "broken". |