summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_subprocess.py
diff options
context:
space:
mode:
authorGregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) <greg@krypto.org>2016-06-04 19:04:43 (GMT)
committerGregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) <greg@krypto.org>2016-06-04 19:04:43 (GMT)
commit78b642c6b2343faf6dcdcbef9e553d82e74e2807 (patch)
treee654edc1b017796b1ab26de0994b6e32408c2ed2 /Lib/test/test_subprocess.py
parent64a263a1ceed726494767d833a2ea33033a6ae28 (diff)
downloadcpython-78b642c6b2343faf6dcdcbef9e553d82e74e2807.zip
cpython-78b642c6b2343faf6dcdcbef9e553d82e74e2807.tar.gz
cpython-78b642c6b2343faf6dcdcbef9e553d82e74e2807.tar.bz2
issue26372 - use os.devnull instead of /dev/null
Diffstat (limited to 'Lib/test/test_subprocess.py')
-rw-r--r--Lib/test/test_subprocess.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py
index a5ecf67..9e44ee3 100644
--- a/Lib/test/test_subprocess.py
+++ b/Lib/test/test_subprocess.py
@@ -1267,7 +1267,7 @@ class ProcessTestCase(BaseTestCase):
stdin=subprocess.PIPE,
stdout=subprocess.PIPE)
with proc, mock.patch.object(proc, 'stdin') as mock_proc_stdin, \
- open('/dev/null', 'wb') as dev_null:
+ open(os.devnull, 'wb') as dev_null:
mock_proc_stdin.flush.side_effect = BrokenPipeError
# because _communicate registers a selector using proc.stdin...
mock_proc_stdin.fileno.return_value = dev_null.fileno()