From ea5576238f9fe1d1c28cec267f9801fae6d3cb52 Mon Sep 17 00:00:00 2001 From: Shadab Zafar Date: Thu, 16 Jun 2016 20:20:54 +0530 Subject: Py3: Use BytesIO in a pathoc test --- test/pathod/test_pathoc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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( -- cgit v1.2.3