[Python-checkins] bpo-32294: Fix multiprocessing test_semaphore_tracker() (GH-4885) (#4887)

Victor Stinner webhook-mailer at python.org
Fri Dec 15 11:26:50 EST 2017


https://github.com/python/cpython/commit/7d1fbecd6a27a3693e05541ffc62b7885edfd8b3
commit: 7d1fbecd6a27a3693e05541ffc62b7885edfd8b3
branch: 3.6
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: Victor Stinner <victor.stinner at gmail.com>
date: 2017-12-15T17:26:46+01:00
summary:

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)

files:
M Lib/test/_test_multiprocessing.py

diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py
index 774e797f02e..e4d60f88042 100644
--- a/Lib/test/_test_multiprocessing.py
+++ b/Lib/test/_test_multiprocessing.py
@@ -4146,7 +4146,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)



More information about the Python-checkins mailing list