PyUnit/UnittestDialog.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2409
df3820f08247
child 2791
a9577f248f04
diff -r 139f182b72f6 -r 8b507a9a2d40 PyUnit/UnittestDialog.py
--- a/PyUnit/UnittestDialog.py	Sun Mar 24 13:52:12 2013 +0100
+++ b/PyUnit/UnittestDialog.py	Mon Mar 25 03:11:06 2013 +0100
@@ -7,6 +7,8 @@
 Module implementing the UI to the pyunit package.
 """
 
+from __future__ import unicode_literals    # __IGNORE_WARNING__
+
 import unittest
 import sys
 import time
@@ -54,7 +56,7 @@
         @param parent parent widget of this dialog (QWidget)
         @param name name of this dialog (string)
         """
-        super().__init__(parent)
+        super(UnittestDialog, self).__init__(parent)
         if name:
             self.setObjectName(name)
         self.setupUi(self)
@@ -655,7 +657,7 @@
         
         @param parent The parent widget.
         """
-        super().__init__()
+        super(QtTestResult, self).__init__()
         self.parent = parent
         
     def addFailure(self, test, err):
@@ -665,7 +667,7 @@
         @param test reference to the test object
         @param err error traceback
         """
-        super().addFailure(test, err)
+        super(QtTestResult, self).addFailure(test, err)
         tracebackLines = self._exc_info_to_string(err, test)
         self.parent.testFailed(str(test), tracebackLines, test.id())
         
@@ -676,7 +678,7 @@
         @param test reference to the test object
         @param err error traceback
         """
-        super().addError(test, err)
+        super(QtTestResult, self).addError(test, err)
         tracebackLines = self._exc_info_to_string(err, test)
         self.parent.testErrored(str(test), tracebackLines, test.id())
         
@@ -687,7 +689,7 @@
         @param test reference to the test object
         @param reason reason for skipping the test (string)
         """
-        super().addSkip(test, reason)
+        super(QtTestResult, self).addSkip(test, reason)
         self.parent.testSkipped(str(test), reason, test.id())
         
     def addExpectedFailure(self, test, err):
@@ -697,7 +699,7 @@
         @param test reference to the test object
         @param err error traceback
         """
-        super().addExpectedFailure(test, err)
+        super(QtTestResult, self).addExpectedFailure(test, err)
         tracebackLines = self._exc_info_to_string(err, test)
         self.parent.testFailedExpected(str(test), tracebackLines, test.id())
         
@@ -707,7 +709,7 @@
         
         @param test reference to the test object
         """
-        super().addUnexpectedSuccess(test)
+        super(QtTestResult, self).addUnexpectedSuccess(test)
         self.parent.testSucceededUnexpected(str(test), test.id())
         
     def startTest(self, test):
@@ -716,7 +718,7 @@
         
         @param test Reference to the test object
         """
-        super().startTest(test)
+        super(QtTestResult, self).startTest(test)
         self.parent.testStarted(str(test), test.shortDescription())
 
     def stopTest(self, test):
@@ -725,7 +727,7 @@
         
         @param test Reference to the test object
         """
-        super().stopTest(test)
+        super(QtTestResult, self).stopTest(test)
         self.parent.testFinished()
 
 
@@ -740,7 +742,7 @@
         @param prog filename of the program to open
         @param parent reference to the parent widget (QWidget)
         """
-        super().__init__(parent)
+        super(UnittestWindow, self).__init__(parent)
         self.cw = UnittestDialog(prog=prog, parent=self)
         self.cw.installEventFilter(self)
         size = self.cw.size()

eric ide

mercurial