aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2017-02-02 10:13:12 +0100
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2017-02-02 10:13:12 +0100
commit3ae060f0d334eebb59c97d0647a2f39ee1b60549 (patch)
tree9727a34a3e0c5ebda9056cf79bf3a1d68e4eabb2
parent2606de25e4f4104a1b0056597e24b203eb53e9bd (diff)
downloadmitmproxy-3ae060f0d334eebb59c97d0647a2f39ee1b60549.tar.gz
mitmproxy-3ae060f0d334eebb59c97d0647a2f39ee1b60549.tar.bz2
mitmproxy-3ae060f0d334eebb59c97d0647a2f39ee1b60549.zip
fix console test
-rw-r--r--test/mitmproxy/console/test_master.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/mitmproxy/console/test_master.py b/test/mitmproxy/console/test_master.py
index 82cc6f9d..8195b1d1 100644
--- a/test/mitmproxy/console/test_master.py
+++ b/test/mitmproxy/console/test_master.py
@@ -40,7 +40,7 @@ class TestMaster(mastertest.MasterTest):
m = self.mkmaster()
f = tflow.tflow(resp=True)
m.run_script_once("nonexistent", [f])
- assert "Input error" in str(m.logbuffer[0])
+ assert any("Input error" in str(l) for l in m.logbuffer)
def test_intercept(self):
"""regression test for https://github.com/mitmproxy/mitmproxy/issues/1605"""