diff options
author | Shadab Zafar <dufferzafar0@gmail.com> | 2016-06-16 20:20:54 +0530 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2016-06-16 17:08:06 -0700 |
commit | ea5576238f9fe1d1c28cec267f9801fae6d3cb52 (patch) | |
tree | b3fd27e0526f1d94cd4fa48f9c768b2e60513b06 /test/pathod | |
parent | aa3d3290eeb1d79d8799f557f785fb559010fb52 (diff) | |
download | mitmproxy-ea5576238f9fe1d1c28cec267f9801fae6d3cb52.tar.gz mitmproxy-ea5576238f9fe1d1c28cec267f9801fae6d3cb52.tar.bz2 mitmproxy-ea5576238f9fe1d1c28cec267f9801fae6d3cb52.zip |
Py3: Use BytesIO in a pathoc test
Diffstat (limited to 'test/pathod')
-rw-r--r-- | test/pathod/test_pathoc.py | 2 |
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( |