aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorShadab Zafar <dufferzafar0@gmail.com>2016-08-08 14:33:21 +0530
committerShadab Zafar <dufferzafar0@gmail.com>2016-08-15 12:00:23 +0530
commit456f80d862b1eb1a268f9780eac77c11c227ce81 (patch)
treee3f69528eec02b5e12a51957aabbdbeb2082dd9b /test
parent2c9240fd223ffaad6b6d754eda9fa1cd385e0ad1 (diff)
downloadmitmproxy-456f80d862b1eb1a268f9780eac77c11c227ce81.tar.gz
mitmproxy-456f80d862b1eb1a268f9780eac77c11c227ce81.tar.bz2
mitmproxy-456f80d862b1eb1a268f9780eac77c11c227ce81.zip
Open JSON file in text mode
Diffstat (limited to 'test')
-rw-r--r--test/mitmproxy/test_examples.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/mitmproxy/test_examples.py b/test/mitmproxy/test_examples.py
index 78681c4e..62e6a652 100644
--- a/test/mitmproxy/test_examples.py
+++ b/test/mitmproxy/test_examples.py
@@ -128,7 +128,7 @@ class TestHARDump(mastertest.MasterTest):
self.invoke(m, "response", self.req_get)
m.addons.remove(sc)
- with open(path, "rb") as inp:
+ with open(path, "r") as inp:
har = json.load(inp)
assert len(har["log"]["entries"]) == 1