diff options
author | Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) <greg@krypto.org> | 2016-06-04 19:05:17 (GMT) |
---|---|---|
committer | Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) <greg@krypto.org> | 2016-06-04 19:05:17 (GMT) |
commit | c55014f3717ce8a810a7e934c8ad5b519dbf88c5 (patch) | |
tree | 3fc187c794267861bab53a358ad5bb17ad60de1e | |
parent | 64c26e5f6004523090c52970d1ed31a351617f38 (diff) | |
parent | 78b642c6b2343faf6dcdcbef9e553d82e74e2807 (diff) | |
download | cpython-c55014f3717ce8a810a7e934c8ad5b519dbf88c5.zip cpython-c55014f3717ce8a810a7e934c8ad5b519dbf88c5.tar.gz cpython-c55014f3717ce8a810a7e934c8ad5b519dbf88c5.tar.bz2 |
issue26372 - use os.devnull instead of /dev/null
-rw-r--r-- | Lib/test/test_subprocess.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index 78eee9e..43d2f498 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -1264,7 +1264,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() |