PyUnit/UnittestDialog.py

branch
5_1_x
changeset 1001
c4aa6e1a23b7
parent 882
34b86be88bf0
child 1485
b0d0ddac7012
--- a/PyUnit/UnittestDialog.py	Tue Apr 26 13:55:27 2011 +0200
+++ b/PyUnit/UnittestDialog.py	Tue Apr 26 17:08:48 2011 +0200
@@ -221,7 +221,11 @@
         self.sbLabel.setText(self.trUtf8("Preparing Testsuite"))
         QApplication.processEvents()
         
-        testFunctionName = self.testComboBox.currentText() or "suite"
+        testFunctionName = self.testComboBox.currentText()
+        if testFunctionName:
+            self.insertTestName(testFunctionName)
+        else:
+            testFunctionName = "suite"
         
         # build the module name from the filename without extension
         self.testName = os.path.splitext(os.path.basename(prog))[0]

eric ide

mercurial