]> granicus.if.org Git - python/commitdiff
bpo-32294: Fix multiprocessing test_semaphore_tracker() (#4885)
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 15 Dec 2017 15:29:24 +0000 (16:29 +0100)
committerGitHub <noreply@github.com>
Fri, 15 Dec 2017 15:29:24 +0000 (16:29 +0100)
Run the child process with -E option to ignore the PYTHONWARNINGS
environment variable.

Lib/test/_test_multiprocessing.py

index 6038553699289575397477cd3ef0eaa38b6d75f2..7575c5d3681525becc78bba59504c982ad04e920 100644 (file)
@@ -4365,7 +4365,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)