Skip to content

Commit d0a2498

Browse files
committed
Remove the buffering in named pipe test because pipe is not seekable
1 parent f35b44a commit d0a2498

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_winapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def test_namedpipe(self):
144144
# Pipe instance is available, so this passes
145145
_winapi.WaitNamedPipe(pipe_name, 0)
146146

147-
with open(pipe_name, 'w+b') as pipe2:
147+
with open(pipe_name, 'w+b', buffering=0) as pipe2:
148148
# No instances available, so this times out
149149
# (WinError 121 does not get mapped to TimeoutError)
150150
with self.assertRaises(OSError):

0 commit comments

Comments
 (0)