diff options
author | Shadab Zafar <dufferzafar0@gmail.com> | 2016-06-04 15:42:24 +0530 |
---|---|---|
committer | Shadab Zafar <dufferzafar0@gmail.com> | 2016-06-06 00:36:15 +0530 |
commit | 435bfeca0b5c0f3a581e334bcfecc742d97d5e58 (patch) | |
tree | 93ab160e52e0d7f11e3ae58ea01ca93a429e7d4c | |
parent | cff54edf6b00c46e5afa51a117a296b504ca4659 (diff) | |
download | mitmproxy-435bfeca0b5c0f3a581e334bcfecc742d97d5e58.tar.gz mitmproxy-435bfeca0b5c0f3a581e334bcfecc742d97d5e58.tar.bz2 mitmproxy-435bfeca0b5c0f3a581e334bcfecc742d97d5e58.zip |
Use BytesIO instead of StringIO
-rw-r--r-- | test/pathod/test_language_actions.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/pathod/test_language_actions.py b/test/pathod/test_language_actions.py index 2d870336..f12d8105 100644 --- a/test/pathod/test_language_actions.py +++ b/test/pathod/test_language_actions.py @@ -1,4 +1,4 @@ -from six.moves import cStringIO as StringIO +from six import BytesIO from pathod.language import actions from pathod import language @@ -61,7 +61,7 @@ class TestInject: assert v.offset == "r" def test_serve(self): - s = StringIO() + s = BytesIO() r = next(language.parse_pathod("400:i0,'foo'")) assert language.serve(r, s, {}) |