PyUnit/UnittestDialog.py

branch
Py2 comp.
changeset 3058
0a02c433f52d
parent 3057
10516539f238
parent 3030
4a0a82ddd9d2
child 3060
5883ce99ee12
--- a/PyUnit/UnittestDialog.py	Fri Oct 18 23:00:41 2013 +0200
+++ b/PyUnit/UnittestDialog.py	Fri Nov 01 15:48:48 2013 +0100
@@ -256,9 +256,10 @@
         
         prog = self.testsuiteComboBox.currentText()
         if not prog:
-            E5MessageBox.critical(self,
-                    self.trUtf8("Unittest"),
-                    self.trUtf8("You must enter a test suite file."))
+            E5MessageBox.critical(
+                self,
+                self.trUtf8("Unittest"),
+                self.trUtf8("You must enter a test suite file."))
             return
         
         # prepend the selected file to the testsuite combobox
@@ -296,8 +297,8 @@
             else:
                 failed = []
             self.__failedTests = []
-            self.dbs.remoteUTPrepare(prog, self.testName, testFunctionName,
-                failed,
+            self.dbs.remoteUTPrepare(
+                prog, self.testName, testFunctionName, failed,
                 self.coverageCheckBox.isChecked(), mainScript,
                 self.coverageEraseCheckBox.isChecked(), clientType=clientType)
         else:
@@ -330,13 +331,14 @@
                         module)
             except:
                 exc_type, exc_value, exc_tb = sys.exc_info()
-                E5MessageBox.critical(self,
-                        self.trUtf8("Unittest"),
-                        self.trUtf8(
-                            "<p>Unable to run test <b>{0}</b>.<br>"
-                            "{1}<br>{2}</p>")
-                            .format(self.testName, str(exc_type),
-                                    str(exc_value)))
+                E5MessageBox.critical(
+                    self,
+                    self.trUtf8("Unittest"),
+                    self.trUtf8(
+                        "<p>Unable to run test <b>{0}</b>.<br>"
+                        "{1}<br>{2}</p>")
+                        .format(self.testName, str(exc_type),
+                                str(exc_value)))
                 return
                 
             # now set up the coverage stuff
@@ -388,11 +390,12 @@
         @param exc_value value of exception occured during preparation (string)
         """
         if nrTests == 0:
-            E5MessageBox.critical(self,
-                    self.trUtf8("Unittest"),
-                    self.trUtf8(
-                        "<p>Unable to run test <b>{0}</b>.<br>{1}<br>{2}</p>")
-                        .format(self.testName, exc_type, exc_value))
+            E5MessageBox.critical(
+                self,
+                self.trUtf8("Unittest"),
+                self.trUtf8(
+                    "<p>Unable to run test <b>{0}</b>.<br>{1}<br>{2}</p>")
+                    .format(self.testName, exc_type, exc_value))
             return
             
         self.totalTests = nrTests

eric ide

mercurial