8000 Removes regression test · python/cpython@a48afcb · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a48afcb

Browse files
committed
Removes regression test
1 parent 6caffde commit a48afcb

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

Lib/test/test_logging.py

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4438,9 +4438,8 @@ def _extract_logrecord_process_name(key, logMultiprocessing, conn=None):
44384438

44394439
r1 = logging.makeLogRecord({'msg': f'msg1_{key}'})
44404440

4441+
# https://bugs.python.org/issue45128
44414442
with support.swap_item(sys.modules, 'multiprocessing', None):
4442-
# We need to restore the previous `multiprocessing` module:
4443-
# https://bugs.python.org/issue45128
44444443
r2 = logging.makeLogRecord({'msg': f'msg2_{key}'})
44454444

44464445
results = {'processName' : name,
@@ -4454,7 +4453,7 @@ def _extract_logrecord_process_name(key, logMultiprocessing, conn=None):
44544453
else:
44554454
return results
44564455

4457-
def test_multiprocessing(self, first_pass=True):
4456+
def test_multiprocessing(self):
44584457
multiprocessing_imported = 'multiprocessing' in sys.modules
44594458
try:
44604459
# logMultiprocessing is True by default
@@ -4490,16 +4489,6 @@ def test_multiprocessing(self, first_pass=True):
44904489
if multiprocessing_imported:
44914490
import multiprocessing
44924491

4493-
if first_pass: # https://bugs.python.org/issue45128
4494-
import multiprocessing.queues
4495-
4496-
self.test_multiprocessing(first_pass=False)
4497-
4498-
import multiprocessing
4499-
import multiprocessing.connection
4500-
from multiprocessing.connection import wait
4501-
multiprocessing.connection # It was AttributeError here
4502-
45034492
def test_optional(self):
45044493
r = logging.makeLogRecord({})
45054494
NOT_NONE = self.assertIsNotNone

0 commit comments

Comments
 (0)
0