Skip to content

Commit 9240231

Browse files
committed
Remove work-around for gh-135335 now it has been fixed.
Remove unnecessary rc check.
1 parent f35a6f8 commit 9240231

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

Lib/test/_test_multiprocessing.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6901,9 +6901,8 @@ def test_preload_main(self):
69016901
self.skipTest("forkserver specific test")
69026902

69036903
name = os.path.join(os.path.dirname(__file__), 'mp_preload_main.py')
6904-
rc, out, err = test.support.script_helper.assert_python_ok(name)
6904+
_, out, err = test.support.script_helper.assert_python_ok(name)
69056905
self.assertFalse(err, msg=err.decode())
6906-
self.assertEqual(rc, 0)
69076906

69086907
# TODO: Where is the extra empty line coming from?
69096908
out = out.decode().split("\n")

Lib/test/mp_preload_main.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
import multiprocessing
2-
import sys
32

43
print(f"{__name__}")
54

6-
# TODO: This is necessary as the fork server doesn't flush output after
7-
# preloading modules, and hence buffered output is inherited by child
8-
# processes. See gh-135335 (this should be removed once that is fixed).
9-
sys.stdout.flush()
10-
115
def f():
126
print("f")
137

0 commit comments

Comments
 (0)