aboutsummaryrefslogtreecommitdiffstats
path: root/test/netlib/http/test_message.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2016-07-07 17:50:26 -0700
committerMaximilian Hils <git@maximilianhils.com>2016-07-07 17:50:26 -0700
commit76473d44e035306503a426ebcd55967798f243a1 (patch)
tree6fe75ef723b9c104897a1c025938fa3d752b3491 /test/netlib/http/test_message.py
parentf62e976e1e0245665aeeb08fa801661d6c766ba8 (diff)
downloadmitmproxy-76473d44e035306503a426ebcd55967798f243a1.tar.gz
mitmproxy-76473d44e035306503a426ebcd55967798f243a1.tar.bz2
mitmproxy-76473d44e035306503a426ebcd55967798f243a1.zip
py3++
Diffstat (limited to 'test/netlib/http/test_message.py')
-rw-r--r--test/netlib/http/test_message.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/netlib/http/test_message.py b/test/netlib/http/test_message.py
index f5bf7f0c..ab2ac628 100644
--- a/test/netlib/http/test_message.py
+++ b/test/netlib/http/test_message.py
@@ -7,8 +7,8 @@ from netlib.tutils import tresp
def _test_passthrough_attr(message, attr):
assert getattr(message, attr) == getattr(message.data, attr)
- setattr(message, attr, "foo")
- assert getattr(message.data, attr) == "foo"
+ setattr(message, attr, b"foo")
+ assert getattr(message.data, attr) == b"foo"
def _test_decoded_attr(message, attr):