aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_pathod.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2014-01-28 19:28:20 +0100
committerMaximilian Hils <git@maximilianhils.com>2014-01-28 19:28:20 +0100
commitb994fb5a2753c4b6ceff75a9227880a0127c5a93 (patch)
tree0bdaa02c5fb43e963ad30c40513c37527f285e42 /test/test_pathod.py
parent1b566869de4d07d509fa2ead6b91486326a9e5a4 (diff)
downloadmitmproxy-b994fb5a2753c4b6ceff75a9227880a0127c5a93.tar.gz
mitmproxy-b994fb5a2753c4b6ceff75a9227880a0127c5a93.tar.bz2
mitmproxy-b994fb5a2753c4b6ceff75a9227880a0127c5a93.zip
adjust to signature changes in netlib.tcp
Diffstat (limited to 'test/test_pathod.py')
-rw-r--r--test/test_pathod.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_pathod.py b/test/test_pathod.py
index 9cd90e94..9ab6d66d 100644
--- a/test/test_pathod.py
+++ b/test/test_pathod.py
@@ -120,7 +120,7 @@ class CommonTests(tutils.DaemonTests):
assert rsp.status_code == 202
def test_invalid_first_line(self):
- c = tcp.TCPClient("localhost", self.d.port)
+ c = tcp.TCPClient(("localhost", self.d.port))
c.connect()
if self.ssl:
c.convert_to_ssl()
@@ -169,7 +169,7 @@ class TestDaemon(CommonTests):
class TestDaemonSSL(CommonTests):
ssl = True
def test_ssl_conn_failure(self):
- c = tcp.TCPClient("localhost", self.d.port)
+ c = tcp.TCPClient(("localhost", self.d.port))
c.rbufsize = 0
c.wbufsize = 0
c.connect()