changeset: 101706:52e331b86f2b parent: 101704:f993dbeb2ad2 parent: 101705:3a560525ca50 user: Gregory P. Smith [Google Inc.] date: Sat Jun 04 19:05:17 2016 +0000 files: Lib/test/test_subprocess.py description: issue26372 - use os.devnull instead of /dev/null diff -r f993dbeb2ad2 -r 52e331b86f2b Lib/test/test_subprocess.py --- a/Lib/test/test_subprocess.py Sat Jun 04 20:33:33 2016 +0300 +++ b/Lib/test/test_subprocess.py Sat Jun 04 19:05:17 2016 +0000 @@ -1264,7 +1264,7 @@ 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()