cpython: 3a560525ca50 (original) (raw)
Mercurial > cpython
changeset 101705:3a560525ca50 3.5
issue26372 - use os.devnull instead of /dev/null [#26372]
Gregory P. Smith greg@krypto.org [Google Inc.] | |
---|---|
date | Sat, 04 Jun 2016 19:04:43 +0000 |
parents | 74ad78d2dd8d |
children | 52e331b86f2b 8136f9623d7f |
files | Lib/test/test_subprocess.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-)[+] [-] Lib/test/test_subprocess.py 2 |
line wrap: on
line diff
--- 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, [](#l1.6)
open('/dev/null', 'wb') as dev_null:[](#l1.7)
open(os.devnull, 'wb') as dev_null:[](#l1.8) mock_proc_stdin.flush.side_effect = BrokenPipeError[](#l1.9) # because _communicate registers a selector using proc.stdin...[](#l1.10) mock_proc_stdin.fileno.return_value = dev_null.fileno()[](#l1.11)