Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docker/utils/socket.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def read(socket, n=4096):

recoverable_errors = (errno.EINTR, errno.EDEADLK, errno.EWOULDBLOCK)

if six.PY3 and not isinstance(socket, NpipeSocket):
if not isinstance(socket, NpipeSocket):
select.select([socket], [], [])

try:
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/api_container_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1276,7 +1276,7 @@ def test_attach_stream_and_cancel(self):
self.client.start(container)
output = self.client.attach(container, stream=True, logs=True)

threading.Timer(3, output.close).start()
threading.Timer(5, output.close).start()

lines = []
for line in output:
Expand Down