Skip to content

Commit 9402c83

Browse files
authored
bpo-32294: Fix multiprocessing test_semaphore_tracker() (#4885)
Run the child process with -E option to ignore the PYTHONWARNINGS environment variable.
1 parent 642d67b commit 9402c83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/_test_multiprocessing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4365,7 +4365,7 @@ def test_semaphore_tracker(self):
43654365
'''
43664366
r, w = os.pipe()
43674367
p = subprocess.Popen([sys.executable,
4368-
'-c', cmd % (w, w)],
4368+
'-E', '-c', cmd % (w, w)],
43694369
pass_fds=[w],
43704370
stderr=subprocess.PIPE)
43714371
os.close(w)

0 commit comments

Comments
 (0)