Skip to content

Commit 78b642c

Browse files
committed
issue26372 - use os.devnull instead of /dev/null
1 parent 64a263a commit 78b642c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_subprocess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1267,7 +1267,7 @@ def test_communicate_BrokenPipeError_stdin_flush(self):
12671267
stdin=subprocess.PIPE,
12681268
stdout=subprocess.PIPE)
12691269
with proc, mock.patch.object(proc, 'stdin') as mock_proc_stdin, \
1270-
open('/dev/null', 'wb') as dev_null:
1270+
open(os.devnull, 'wb') as dev_null:
12711271
mock_proc_stdin.flush.side_effect = BrokenPipeError
12721272
# because _communicate registers a selector using proc.stdin...
12731273
mock_proc_stdin.fileno.return_value = dev_null.fileno()

0 commit comments

Comments
 (0)