From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 15 Dec 2017 16:26:46 +0000 (-0800) Subject: bpo-32294: Fix multiprocessing test_semaphore_tracker() (GH-4885) (#4887) X-Git-Tag: v3.6.5rc1~198 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7d1fbecd6a27a3693e05541ffc62b7885edfd8b3;p=python 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) --- 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)