aboutsummaryrefslogtreecommitdiffstats
path: root/test/pathod
diff options
context:
space:
mode:
authorShadab Zafar <dufferzafar0@gmail.com>2016-05-08 16:20:27 +0530
committerShadab Zafar <dufferzafar0@gmail.com>2016-05-26 23:07:37 +0530
commit22e4bc1938b74b0d0bfda7cab41b54070bcd7fb9 (patch)
treeb917986a9eda777a0d1a9c5a1ec409112b184423 /test/pathod
parente5cebb81fb46f21ba77cbc2a1b3a58aad5e77a66 (diff)
downloadmitmproxy-22e4bc1938b74b0d0bfda7cab41b54070bcd7fb9.tar.gz
mitmproxy-22e4bc1938b74b0d0bfda7cab41b54070bcd7fb9.tar.bz2
mitmproxy-22e4bc1938b74b0d0bfda7cab41b54070bcd7fb9.zip
Py3: Handle bytes case in inner_repr
Diffstat (limited to 'test/pathod')
-rw-r--r--test/pathod/test_utils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/pathod/test_utils.py b/test/pathod/test_utils.py
index 4dcedf6e..4e891ad9 100644
--- a/test/pathod/test_utils.py
+++ b/test/pathod/test_utils.py
@@ -30,6 +30,7 @@ def test_data_path():
def test_inner_repr():
assert utils.inner_repr("\x66") == "\x66"
assert utils.inner_repr(u"foo") == "foo"
+ assert utils.inner_repr(b"foo") == "foo"
def test_escape_unprintables():