aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_wsgi.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_wsgi.py')
-rw-r--r--test/test_wsgi.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_wsgi.py b/test/test_wsgi.py
index e26e1413..856967af 100644
--- a/test/test_wsgi.py
+++ b/test/test_wsgi.py
@@ -1,4 +1,4 @@
-import cStringIO
+from io import BytesIO
import sys
from netlib import wsgi
from netlib.http import Headers
@@ -41,7 +41,7 @@ class TestWSGI:
f.request.host = "foo"
f.request.port = 80
- wfile = cStringIO.StringIO()
+ wfile = BytesIO()
err = w.serve(f, wfile)
assert ta.called
assert not err
@@ -55,7 +55,7 @@ class TestWSGI:
f = tflow()
f.request.host = "foo"
f.request.port = 80
- wfile = cStringIO.StringIO()
+ wfile = BytesIO()
w.serve(f, wfile)
return wfile.getvalue()