diff -r 6d8d39753c82 -r 72b32daeb8d6 PyUnit/UnittestDialog.py --- a/PyUnit/UnittestDialog.py Mon Aug 30 20:16:34 2010 +0200 +++ b/PyUnit/UnittestDialog.py Tue Aug 31 12:17:02 2010 +0200 @@ -19,6 +19,7 @@ from E5Gui.E5Application import e5App from E5Gui.E5Completers import E5FileCompleter +from E5Gui import E5MessageBox from .Ui_UnittestDialog import Ui_UnittestDialog from .Ui_UnittestStacktraceDialog import Ui_UnittestStacktraceDialog @@ -210,7 +211,7 @@ prog = self.testsuiteComboBox.currentText() if not prog: - QMessageBox.critical(self, + E5MessageBox.critical(self, self.trUtf8("Unittest"), self.trUtf8("You must enter a test suite file.")) return @@ -257,7 +258,7 @@ test = unittest.defaultTestLoader.loadTestsFromModule(module) except: exc_type, exc_value, exc_tb = sys.exc_info() - QMessageBox.critical(self, + 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))) @@ -306,7 +307,7 @@ @param exc_value value of exception occured during preparation (string) """ if nrTests == 0: - QMessageBox.critical(self, + 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)) @@ -590,4 +591,4 @@ QApplication.exit() return True - return False + return False \ No newline at end of file