aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_pathod.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2014-02-07 10:50:57 +1300
committerAldo Cortesi <aldo@nullcube.com>2014-02-07 10:50:57 +1300
commit0baa296613506f20b362a4d54b6a94ec27e1097b (patch)
tree69c78dfbabf2cd25a8bb0e67439b56c0d5a4df09 /test/test_pathod.py
parent1572d14cc336215a7cf8d6e20b4ad4a25bfd60ef (diff)
parentb64e1ccf9152d5f7fc7a933e1b77d18185fecb22 (diff)
downloadmitmproxy-0baa296613506f20b362a4d54b6a94ec27e1097b.tar.gz
mitmproxy-0baa296613506f20b362a4d54b6a94ec27e1097b.tar.bz2
mitmproxy-0baa296613506f20b362a4d54b6a94ec27e1097b.zip
Merge branch 'tcp_proxy'
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()