diff options
Diffstat (limited to 'tests/unit/misc/test_guiprocess.py')
-rw-r--r-- | tests/unit/misc/test_guiprocess.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/unit/misc/test_guiprocess.py b/tests/unit/misc/test_guiprocess.py index 9e1b3916c..18e926fab 100644 --- a/tests/unit/misc/test_guiprocess.py +++ b/tests/unit/misc/test_guiprocess.py @@ -226,7 +226,12 @@ def test_error(qtbot, proc, caplog, message_mock): proc.start('this_does_not_exist_either', []) msg = message_mock.getmsg(usertypes.MessageLevel.error) - assert msg.text.startswith("Error while spawning testprocess:") + assert msg.text.startswith( + "Testprocess 'this_does_not_exist_either' failed to start:") + + if not utils.is_windows: + assert msg.text.endswith( + "(Hint: Make sure 'this_does_not_exist_either' exists and is executable)") def test_exit_unsuccessful(qtbot, proc, message_mock, py_proc, caplog): |