diff --git a/tests/test_ui.py b/tests/test_ui.py index 02dac42..ce2e7c9 100644 --- a/tests/test_ui.py +++ b/tests/test_ui.py @@ -145,9 +145,9 @@ def test_ctrl_c_clears(default_formatter, todo_factory): # Simulate that ctrl+c gets pressed, since we can't *really* do that # trivially inside unit tests. with mock.patch( - "urwid.main_loop.MainLoop.run", side_effect=KeyboardInterrupt + "urwid.event_loop.MainLoop.run", side_effect=KeyboardInterrupt ), mock.patch( - "urwid.main_loop.MainLoop.stop", + "urwid.event_loop.MainLoop.stop", ) as mocked_stop: editor.edit()