diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2017-12-15 15:29:24 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-15 15:29:24 (GMT) |
commit | 9402c8367bf6ada1b84f620ad957750c33adbaf9 (patch) | |
tree | c4ddacc041db01cb0cc5ff37feaf2bea0d781e9d | |
parent | 642d67b4f25262889b43f91ad2a96ca0e37fd5a2 (diff) | |
download | cpython-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.py | 2 |
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) |