diff options
author | Maximilian Hils <git@maximilianhils.com> | 2016-07-05 18:48:45 -0700 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2016-07-06 19:55:48 -0700 |
commit | 684b4b5130aa9cc75322dd270172b263615d39dc (patch) | |
tree | 7fa73903a59e885c02c4a58e23fb54d5d18de08a /test | |
parent | e6e839d56d86e7f7126b3b662a07f12625f3d691 (diff) | |
download | mitmproxy-684b4b5130aa9cc75322dd270172b263615d39dc.tar.gz mitmproxy-684b4b5130aa9cc75322dd270172b263615d39dc.tar.bz2 mitmproxy-684b4b5130aa9cc75322dd270172b263615d39dc.zip |
tnetstring: keys are str on py3. migrate flow.io_compat
Diffstat (limited to 'test')
-rw-r--r-- | test/mitmproxy/test_contrib_tnetstring.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/mitmproxy/test_contrib_tnetstring.py b/test/mitmproxy/test_contrib_tnetstring.py index 17654ad9..8ae35a25 100644 --- a/test/mitmproxy/test_contrib_tnetstring.py +++ b/test/mitmproxy/test_contrib_tnetstring.py @@ -12,7 +12,7 @@ FORMAT_EXAMPLES = { b'0:}': {}, b'0:]': [], b'51:5:hello,39:11:12345678901#4:this,4:true!0:~4:\x00\x00\x00\x00,]}': - {b'hello': [12345678901, b'this', True, None, b'\x00\x00\x00\x00']}, + {'hello': [12345678901, b'this', True, None, b'\x00\x00\x00\x00']}, b'5:12345#': 12345, b'12:this is cool,': b'this is cool', b'0:,': b'', @@ -43,7 +43,7 @@ def get_random_object(random=random, depth=0): d = {} for _ in range(n): n = random.randint(0, 100) - k = bytes([random.randint(32, 126) for _ in range(n)]) + k = str([random.randint(32, 126) for _ in range(n)]) d[k] = get_random_object(random, depth + 1) return d else: |