--- a/src/eric7/Testing/TestResultsTree.py Wed Dec 20 10:49:45 2023 +0100 +++ b/src/eric7/Testing/TestResultsTree.py Wed Dec 20 11:06:38 2023 +0100 @@ -659,7 +659,9 @@ act = menu.addAction( self.tr("Show Source"), lambda: self.__gotoTestDefinition(index) ) - act.setEnabled(self.model().data(index, Qt.ItemDataRole.UserRole) is not None) + act.setEnabled( + self.model().data(index, Qt.ItemDataRole.UserRole)[0] is not None + ) menu.addSeparator() menu.addAction(self.tr("Collapse All"), self.collapseAll)