summaryrefslogtreecommitdiff
path: root/tests/system/suite_editors/tst_edit_externally/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/system/suite_editors/tst_edit_externally/test.py')
-rw-r--r--tests/system/suite_editors/tst_edit_externally/test.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/system/suite_editors/tst_edit_externally/test.py b/tests/system/suite_editors/tst_edit_externally/test.py
index 6fd8bb8a06..12c7c2487f 100644
--- a/tests/system/suite_editors/tst_edit_externally/test.py
+++ b/tests/system/suite_editors/tst_edit_externally/test.py
@@ -77,7 +77,12 @@ def main():
modifyExternally(files[i - 1])
# clicking Cancel does not work when running inside Squish - mBox would not come up
sendEvent("QCloseEvent", waitForObject(":New_Core::Internal::NewDialog"))
- test.verify(str(waitForObject(mBox).text)
+ try:
+ shownMBox = waitForObject(mBox)
+ except:
+ test.fatal("No MessageBox shown after modifying file %s" % currentFile)
+ continue
+ test.verify(str(shownMBox.text)
in (popupText % os.path.basename(currentFile),
popupText % os.path.basename(files[i - 1])),
"Verifying: One of the modified files is offered as changed.")