diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/mitmproxy/addons/test_script.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/mitmproxy/addons/test_script.py b/test/mitmproxy/addons/test_script.py index c31f4e9b..a41f6103 100644 --- a/test/mitmproxy/addons/test_script.py +++ b/test/mitmproxy/addons/test_script.py @@ -156,8 +156,8 @@ class TestScript: sc.request(f) assert tctx.master.event_log[0][0] == "error" assert len(tctx.master.event_log[0][1].splitlines()) == 6 - assert re.search('addonscripts/error.py", line \d+, in request', tctx.master.event_log[0][1]) - assert re.search('addonscripts/error.py", line \d+, in mkerr', tctx.master.event_log[0][1]) + assert re.search(r'addonscripts[\\/]error.py", line \d+, in request', tctx.master.event_log[0][1]) + assert re.search(r'addonscripts[\\/]error.py", line \d+, in mkerr', tctx.master.event_log[0][1]) assert tctx.master.event_log[0][1].endswith("ValueError: Error!\n") def test_addon(self): |
