Skip to content

Commit

Permalink
Do not use line buffering in binary mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjstahlberg committed Jan 13, 2021
1 parent c807f3e commit 2002ba8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions concurrencytest.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def do_fork(suite):
pid = os.fork()
if pid == 0:
try:
stream = os.fdopen(c2pwrite, 'wb', 1)
stream = os.fdopen(c2pwrite, 'wb')
os.close(c2pread)
# Leave stderr and stdout open so we can see test noise
# Close stdin so that the child goes away if it decides to
Expand All @@ -93,7 +93,7 @@ def do_fork(suite):
os._exit(0)
else:
os.close(c2pwrite)
stream = os.fdopen(c2pread, 'rb', 1)
stream = os.fdopen(c2pread, 'rb')
test = ProtocolTestCase(stream)
result.append(test)
return result
Expand Down

0 comments on commit 2002ba8

Please sign in to comment.