bpo-32294: Fix multiprocessing test_semaphore_tracker() (#4885)

Run the child process with -E option to ignore the PYTHONWARNINGS
environment variable.
This commit is contained in:
Victor Stinner 2017-12-15 16:29:24 +01:00 committed by GitHub
parent 642d67b4f2
commit 9402c8367b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View 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)