flake8 fixes

Signed-off-by: aiordache <anca.iordache@docker.com>
This commit is contained in:
aiordache 2020-10-06 14:15:02 +02:00
parent b72988bc87
commit 593d0c97d3
2 changed files with 7 additions and 4 deletions

View File

@ -97,7 +97,6 @@ class SSHSocket(socket.socket):
self.proc.stdin.flush()
return len(msg)
def recv(self):
if not self.proc:
raise Exception('SSH subprocess not initiated.'
@ -119,6 +118,7 @@ class SSHSocket(socket.socket):
self.proc.stdin.flush()
self.proc.terminate()
class SSHConnection(httplib.HTTPConnection, object):
def __init__(self, ssh_transport=None, timeout=60, host=None):
super(SSHConnection, self).__init__(

View File

@ -85,7 +85,10 @@ class BaseAPIIntegrationTest(BaseIntegrationTest):
@staticmethod
def get_client_instance():
return docker.APIClient(
version=TEST_API_VERSION, timeout=60, use_ssh_client=True, **kwargs_from_env()
version=TEST_API_VERSION,
timeout=60,
use_ssh_client=True,
**kwargs_from_env()
)
@staticmethod