summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-12-15 15:29:24 (GMT)
committerGitHub <noreply@github.com>2017-12-15 15:29:24 (GMT)
commit9402c8367bf6ada1b84f620ad957750c33adbaf9 (patch)
treec4ddacc041db01cb0cc5ff37feaf2bea0d781e9d
parent642d67b4f25262889b43f91ad2a96ca0e37fd5a2 (diff)
downloadcpython-9402c8367bf6ada1b84f620ad957750c33adbaf9.zip
cpython-9402c8367bf6ada1b84f620ad957750c33adbaf9.tar.gz
cpython-9402c8367bf6ada1b84f620ad957750c33adbaf9.tar.bz2
bpo-32294: Fix multiprocessing test_semaphore_tracker() (#4885)
Run the child process with -E option to ignore the PYTHONWARNINGS environment variable.
-rw-r--r--Lib/test/_test_multiprocessing.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py
index 6038553..7575c5d 100644
--- a/Lib/test/_test_multiprocessing.py
+++ b/Lib/test/_test_multiprocessing.py
@@ -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)