mirror of
https://github.com/python/cpython.git
synced 2025-09-30 20:31:52 +00:00
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 9402c8367b
)
This commit is contained in:
parent
da2b79867e
commit
7d1fbecd6a
1 changed files with 1 additions and 1 deletions
|
@ -4146,7 +4146,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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue