From 931157ddbf9e078132b5ff49efb7e3059c3490a7 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 15 Dec 2017 16:01:44 +0100 Subject: [PATCH] bpo-32294: Fix multiprocessing test_semaphore_tracker() Run the child process with -E option to ignore the PYTHONWARNINGS environment variable. --- Lib/test/_test_multiprocessing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py index 60385536992895..7575c5d3681525 100644 --- a/Lib/test/_test_multiprocessing.py +++ b/Lib/test/_test_multiprocessing.py @@ -4365,7 +4365,7 @@ def test_semaphore_tracker(self): ''' r, w = os.pipe() p = subprocess.Popen([sys.executable, - '-c', cmd % (w, w)], + '-E', '-c', cmd % (w, w)], pass_fds=[w], stderr=subprocess.PIPE) os.close(w)