eric7/PyUnit/UnittestDialog.py

branch
eric7
changeset 8324
83084f088655
parent 8322
b422b4e77d19
child 8327
666c2b81cbb7
equal deleted inserted replaced
8323:3bb9b7d997db 8324:83084f088655
940 if text: 940 if text:
941 for pattern in self.rxPatterns: 941 for pattern in self.rxPatterns:
942 text = re.sub(pattern, "", text) 942 text = re.sub(pattern, "", text)
943 943
944 foundItems = self.testsListWidget.findItems( 944 foundItems = self.testsListWidget.findItems(
945 text, Qt.MatchFlags(Qt.MatchFlag.MatchExactly)) 945 text, Qt.MatchFlag.MatchExactly)
946 if len(foundItems) > 0: 946 if len(foundItems) > 0:
947 itm = foundItems[0] 947 itm = foundItems[0]
948 self.testsListWidget.setCurrentItem(itm) 948 self.testsListWidget.setCurrentItem(itm)
949 self.testsListWidget.scrollToItem(itm) 949 self.testsListWidget.scrollToItem(itm)
950 950

eric ide

mercurial