diff --git a/tests/unit/config/test_configcommands.py b/tests/unit/config/test_configcommands.py index 92796e8e5..a376e19b9 100644 --- a/tests/unit/config/test_configcommands.py +++ b/tests/unit/config/test_configcommands.py @@ -330,7 +330,7 @@ class TestEdit: def _write_file(editor_self): with open(editor_self._filename, 'w', encoding='utf-8') as f: f.write(text) - editor_self.on_proc_closed(0, QProcess.NormalExit) + editor_self.file_updated.emit(text) return mocker.patch('qutebrowser.config.configcommands.editor.' 'ExternalEditor._start_editor', autospec=True,