diff options
author | Gregory P. Smith <greg@krypto.org> | 2023-02-03 15:20:46 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-03 15:20:46 -0800 |
commit | d4c410f0f922683f38c9d435923939d037fbd8c2 (patch) | |
tree | b776e07cb59767c41176c73e568a11d4957f2e51 /Lib/test/test_concurrent_futures.py | |
parent | f6c53b80a16f63825479c5ca0f8a5e2829c3f505 (diff) | |
download | cpython-d4c410f0f922683f38c9d435923939d037fbd8c2.tar.gz cpython-d4c410f0f922683f38c9d435923939d037fbd8c2.zip |
gh-84559: Remove the new multiprocessing warning, too disruptive. (#101551)
This reverts the core of #100618 while leaving relevant documentation
improvements and minor refactorings in place.
Diffstat (limited to 'Lib/test/test_concurrent_futures.py')
-rw-r--r-- | Lib/test/test_concurrent_futures.py | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/Lib/test/test_concurrent_futures.py b/Lib/test/test_concurrent_futures.py index 4493cd31252..b3520ae3994 100644 --- a/Lib/test/test_concurrent_futures.py +++ b/Lib/test/test_concurrent_futures.py @@ -18,7 +18,6 @@ import sys import threading import time import unittest -import warnings import weakref from pickle import PicklingError @@ -572,24 +571,6 @@ class ProcessPoolShutdownTest(ExecutorShutdownTest): assert all([r == abs(v) for r, v in zip(res, range(-5, 5))]) -@unittest.skipIf(mp.get_all_start_methods()[0] != "fork", "non-fork default.") -class ProcessPoolExecutorDefaultForkWarning(unittest.TestCase): - def test_fork_default_warns(self): - with self.assertWarns(mp.context.DefaultForkDeprecationWarning): - with futures.ProcessPoolExecutor(2): - pass - - def test_explicit_fork_does_not_warn(self): - with warnings.catch_warnings(record=True) as ws: - warnings.simplefilter("ignore") - warnings.filterwarnings( - 'always', category=mp.context.DefaultForkDeprecationWarning) - ctx = mp.get_context("fork") # Non-default fork context. - with futures.ProcessPoolExecutor(2, mp_context=ctx): - pass - self.assertEqual(len(ws), 0, msg=[str(x) for x in ws]) - - create_executor_tests(ProcessPoolShutdownTest, executor_mixins=(ProcessPoolForkMixin, ProcessPoolForkserverMixin, |