summaryrefslogtreecommitdiff
path: root/tests/unit/misc/test_guiprocess.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/misc/test_guiprocess.py')
-rw-r--r--tests/unit/misc/test_guiprocess.py17
1 files changed, 8 insertions, 9 deletions
diff --git a/tests/unit/misc/test_guiprocess.py b/tests/unit/misc/test_guiprocess.py
index 702a1dca8..d225ab2e2 100644
--- a/tests/unit/misc/test_guiprocess.py
+++ b/tests/unit/misc/test_guiprocess.py
@@ -403,16 +403,15 @@ def test_failing_to_start(qtbot, proc, caplog, message_mock, monkeypatch, is_fla
with qtbot.wait_signal(proc.error, timeout=5000):
proc.start('this_does_not_exist_either', [])
+ expected_msg = (
+ "Testprocess 'this_does_not_exist_either' failed to start:"
+ " 'this_does_not_exist_either' doesn't exist or isn't executable"
+ )
+ if is_flatpak:
+ expected_msg += " inside the Flatpak container"
+
msg = message_mock.getmsg(usertypes.MessageLevel.error)
- assert msg.text.startswith(
- "Testprocess 'this_does_not_exist_either' failed to start:")
-
- if not utils.is_windows:
- expected_msg = (
- "Hint: Make sure 'this_does_not_exist_either' exists and is executable")
- if is_flatpak:
- expected_msg += ' inside the Flatpak container'
- assert msg.text.endswith(expected_msg)
+ assert msg.text == expected_msg
assert not proc.outcome.running
assert proc.outcome.status is None