diff -r 0a02c433f52d -r 5883ce99ee12 PyUnit/UnittestDialog.py --- a/PyUnit/UnittestDialog.py Fri Nov 01 15:48:48 2013 +0100 +++ b/PyUnit/UnittestDialog.py Sun Nov 03 15:58:22 2013 +0100 @@ -221,7 +221,7 @@ flags = Utilities.extractFlagsFromFile(txt) if txt.endswith(exts) or \ ("FileType" in flags and - flags["FileType"] in ["Python", "Python2"]): + flags["FileType"] in ["Python", "Python2"]): self.coverageCheckBox.setChecked(False) self.coverageCheckBox.setEnabled(False) self.localCheckBox.setChecked(False) @@ -288,7 +288,7 @@ if mainScript.endswith( tuple(Preferences.getPython("PythonExtensions"))) or \ ("FileType" in flags and - flags["FileType"] in ["Python", "Python2"]): + flags["FileType"] in ["Python", "Python2"]): clientType = "Python2" else: clientType = "" @@ -337,8 +337,8 @@ self.trUtf8( "<p>Unable to run test <b>{0}</b>.<br>" "{1}<br>{2}</p>") - .format(self.testName, str(exc_type), - str(exc_value))) + .format(self.testName, str(exc_type), + str(exc_value))) return # now set up the coverage stuff @@ -358,7 +358,7 @@ from DebugClients.Python3.coverage import coverage cover = coverage( data_file="{0}.coverage".format( - os.path.splitext(mainScript)[0])) + os.path.splitext(mainScript)[0])) cover.use_cache(True) if self.coverageEraseCheckBox.isChecked(): cover.erase() @@ -395,7 +395,7 @@ 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)) + .format(self.testName, exc_type, exc_value)) return self.totalTests = nrTests