From a99bf0814c6ce789164f6a28a4e622aa6e37d72b Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Mon, 12 Dec 2016 09:06:18 +1300 Subject: console: clean path prompt handling - Don't trigger callback if no path is specified - Expand userdir centrally - Catch IO errors from callbacks and turn them into status messages --- test/mitmproxy/console/test_pathedit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/mitmproxy/console/test_pathedit.py b/test/mitmproxy/console/test_pathedit.py index 40d55353..b326ed6d 100644 --- a/test/mitmproxy/console/test_pathedit.py +++ b/test/mitmproxy/console/test_pathedit.py @@ -54,7 +54,7 @@ class TestPathEdit: def test_keypress(self): - pe = pathedit.PathEdit() + pe = pathedit.PathEdit("", "") with patch('urwid.widget.Edit.get_edit_text') as get_text, \ patch('urwid.widget.Edit.set_edit_text') as set_text: -- cgit v1.2.3