From 7d1fbecd6a27a3693e05541ffc62b7885edfd8b3 Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Fri, 15 Dec 2017 08:26:46 -0800 Subject: [PATCH] bpo-32294: Fix multiprocessing test_semaphore_tracker() (GH-4885) (#4887) Run the child process with -E option to ignore the PYTHONWARNINGS environment variable. (cherry picked from commit 9402c8367bf6ada1b84f620ad957750c33adbaf9) --- 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 774e797f02..e4d60f8804 100644 --- a/Lib/test/_test_multiprocessing.py +++ b/Lib/test/_test_multiprocessing.py @@ -4146,7 +4146,7 @@ class TestSemaphoreTracker(unittest.TestCase): ''' 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) -- 2.40.0