--- a/DebugClients/Python3/DCTestResult.py Fri Sep 02 19:14:41 2016 +0200 +++ b/DebugClients/Python3/DCTestResult.py Fri Sep 02 19:50:20 2016 +0200 @@ -11,11 +11,6 @@ from unittest import TestResult -##from DebugProtocol import ResponseUTTestFailed, ResponseUTTestErrored, \ -## ResponseUTStartTest, ResponseUTStopTest, ResponseUTTestSkipped, \ -## ResponseUTTestFailedExpected, ResponseUTTestSucceededUnexpected - - class DCTestResult(TestResult): """ A TestResult derivative to work with eric6's debug client. @@ -41,9 +36,6 @@ """ TestResult.addFailure(self, test, err) tracebackLines = self._exc_info_to_string(err, test) -## self.parent.write('{0}{1}\n'.format( -## ResponseUTTestFailed, -## str((str(test), tracebackLines, test.id())))) self.__dbgClient.sendJsonCommand("ResponseUTTestFailed", { "testname": str(test), "traceback": tracebackLines, @@ -59,9 +51,6 @@ """ TestResult.addError(self, test, err) tracebackLines = self._exc_info_to_string(err, test) -## self.parent.write('{0}{1}\n'.format( -## ResponseUTTestErrored, -## str((str(test), tracebackLines, test.id())))) self.__dbgClient.sendJsonCommand("ResponseUTTestErrored", { "testname": str(test), "traceback": tracebackLines, @@ -76,9 +65,6 @@ @param reason reason for skipping the test (string) """ TestResult.addSkip(self, test, reason) -## self.parent.write('{0}{1}\n'.format( -## ResponseUTTestSkipped, -## str((str(test), reason, test.id())))) self.__dbgClient.sendJsonCommand("ResponseUTTestSkipped", { "testname": str(test), "reason": reason, @@ -94,9 +80,6 @@ """ TestResult.addExpectedFailure(self, test, err) tracebackLines = self._exc_info_to_string(err, test) -## self.parent.write('{0}{1}\n'.format( -## ResponseUTTestFailedExpected, -## str((str(test), tracebackLines, test.id())))) self.__dbgClient.sendJsonCommand("ResponseUTTestFailedExpected", { "testname": str(test), "traceback": tracebackLines, @@ -110,9 +93,6 @@ @param test reference to the test object """ TestResult.addUnexpectedSuccess(self, test) -## self.parent.write('{0}{1}\n'.format( -## ResponseUTTestSucceededUnexpected, -## str((str(test), test.id())))) self.__dbgClient.sendJsonCommand("ResponseUTTestSucceededUnexpected", { "testname": str(test), "id": test.id(), @@ -125,9 +105,6 @@ @param test Reference to the test object """ TestResult.startTest(self, test) -## self.parent.write('{0}{1}\n'.format( -## ResponseUTStartTest, -## str((str(test), test.shortDescription())))) self.__dbgClient.sendJsonCommand("ResponseUTStartTest", { "testname": str(test), "description": test.shortDescription(), @@ -140,7 +117,6 @@ @param test Reference to the test object """ TestResult.stopTest(self, test) -## self.parent.write('{0}\n'.format(ResponseUTStopTest)) self.__dbgClient.sendJsonCommand("ResponseUTStopTest", {}) # ensure that pending input is processed