aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShadab Zafar <dufferzafar0@gmail.com>2016-06-16 20:20:54 +0530
committerMaximilian Hils <git@maximilianhils.com>2016-06-16 17:08:06 -0700
commitea5576238f9fe1d1c28cec267f9801fae6d3cb52 (patch)
treeb3fd27e0526f1d94cd4fa48f9c768b2e60513b06
parentaa3d3290eeb1d79d8799f557f785fb559010fb52 (diff)
downloadmitmproxy-ea5576238f9fe1d1c28cec267f9801fae6d3cb52.tar.gz
mitmproxy-ea5576238f9fe1d1c28cec267f9801fae6d3cb52.tar.bz2
mitmproxy-ea5576238f9fe1d1c28cec267f9801fae6d3cb52.zip
Py3: Use BytesIO in a pathoc test
-rw-r--r--test/pathod/test_pathoc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/pathod/test_pathoc.py b/test/pathod/test_pathoc.py
index 05cf518d..7f26c247 100644
--- a/test/pathod/test_pathoc.py
+++ b/test/pathod/test_pathoc.py
@@ -169,7 +169,7 @@ class TestDaemon(PathocTestDaemon):
def test_connect_fail(self):
to = ("foobar", 80)
c = pathoc.Pathoc(("127.0.0.1", self.d.port), fp=None)
- c.rfile, c.wfile = StringIO(), StringIO()
+ c.rfile, c.wfile = BytesIO(), BytesIO()
with raises("connect failed"):
c.http_connect(to)
c.rfile = BytesIO(