diff options
author | Thomas Kriechbaumer <Kriechi@users.noreply.github.com> | 2016-07-09 10:17:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-09 10:17:24 +0200 |
commit | 695c7368e6e4474268df0319b78b9536bae9fe39 (patch) | |
tree | e93aa6bdd8dc8a7d3d9ff0babbe9e7c752cff45a /test/netlib/test_strutils.py | |
parent | 3d40fae6d759adc4d0862c52cb043cd3c9fa0cc8 (diff) | |
parent | 83a1cc5a9a62dbe22bd9e87f496928ae1664da2b (diff) | |
download | mitmproxy-695c7368e6e4474268df0319b78b9536bae9fe39.tar.gz mitmproxy-695c7368e6e4474268df0319b78b9536bae9fe39.tar.bz2 mitmproxy-695c7368e6e4474268df0319b78b9536bae9fe39.zip |
Merge pull request #1299 from dufferzafar/py3-dump
Python 3 - test_dump
Diffstat (limited to 'test/netlib/test_strutils.py')
-rw-r--r-- | test/netlib/test_strutils.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/netlib/test_strutils.py b/test/netlib/test_strutils.py index 68bfdb94..7c3eacc6 100644 --- a/test/netlib/test_strutils.py +++ b/test/netlib/test_strutils.py @@ -38,8 +38,9 @@ def test_escape_control_characters(): u'=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~.' ) - with tutils.raises(ValueError): - strutils.escape_control_characters(b"foo") + if not six.PY2: + with tutils.raises(ValueError): + strutils.escape_control_characters(b"foo") def test_bytes_to_escaped_str(): |