summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_logging.py
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2023-02-03 23:20:46 (GMT)
committerGitHub <noreply@github.com>2023-02-03 23:20:46 (GMT)
commitd4c410f0f922683f38c9d435923939d037fbd8c2 (patch)
treeb776e07cb59767c41176c73e568a11d4957f2e51 /Lib/test/test_logging.py
parentf6c53b80a16f63825479c5ca0f8a5e2829c3f505 (diff)
downloadcpython-d4c410f0f922683f38c9d435923939d037fbd8c2.zip
cpython-d4c410f0f922683f38c9d435923939d037fbd8c2.tar.gz
cpython-d4c410f0f922683f38c9d435923939d037fbd8c2.tar.bz2
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_logging.py')
-rw-r--r--Lib/test/test_logging.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index 8a12d57..072056d 100644
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -4759,9 +4759,8 @@ class LogRecordTest(BaseTest):
# In other processes, processName is correct when multiprocessing in imported,
# but it is (incorrectly) defaulted to 'MainProcess' otherwise (bpo-38762).
import multiprocessing
- mp = multiprocessing.get_context('spawn')
- parent_conn, child_conn = mp.Pipe()
- p = mp.Process(
+ parent_conn, child_conn = multiprocessing.Pipe()
+ p = multiprocessing.Process(
target=self._extract_logrecord_process_name,
args=(2, LOG_MULTI_PROCESSING, child_conn,)
)