--- a/PyUnit/UnittestDialog.py Mon Jan 09 18:13:40 2017 +0100 +++ b/PyUnit/UnittestDialog.py Tue Jan 10 15:35:08 2017 +0100 @@ -120,6 +120,9 @@ self.rxPatterns = [ self.tr("^Failure: "), self.tr("^Error: "), + # These are for untranslated/partially translated situations + "^Failure: ", + "^Error: ", ] self.__failedTests = [] @@ -425,10 +428,13 @@ if text: for pattern in self.rxPatterns: text = re.sub(pattern, "", text) - itm = self.testsListWidget.findItems( - text, Qt.MatchFlags(Qt.MatchExactly))[0] - self.testsListWidget.setCurrentItem(itm) - self.testsListWidget.scrollToItem(itm) + + foundItems = self.testsListWidget.findItems( + text, Qt.MatchFlags(Qt.MatchExactly)) + if len(foundItems) > 0: + itm = foundItems[0] + self.testsListWidget.setCurrentItem(itm) + self.testsListWidget.scrollToItem(itm) def __setRunningMode(self): """