From 3ae060f0d334eebb59c97d0647a2f39ee1b60549 Mon Sep 17 00:00:00 2001 From: Thomas Kriechbaumer Date: Thu, 2 Feb 2017 10:13:12 +0100 Subject: [PATCH] fix console test --- test/mitmproxy/console/test_master.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/mitmproxy/console/test_master.py b/test/mitmproxy/console/test_master.py index 82cc6f9dc..8195b1d19 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"""