[PATCH 49/55] TestCase.addUnexpectedSuccess doesn't take an error.

Jelmer Vernooij jelmer at samba.org
Fri Feb 6 12:04:21 MST 2015


Change-Id: I90f7dd225d9ed3cbc515292de9a37a816ac0639f
Signed-off-by: Jelmer Vernooij <jelmer at samba.org>
---
 selftest/subunithelper.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/selftest/subunithelper.py b/selftest/subunithelper.py
index 5308e99..c065e9e 100644
--- a/selftest/subunithelper.py
+++ b/selftest/subunithelper.py
@@ -120,7 +120,7 @@ def parse_results(msg_ops, statistics, fh):
                     msg_ops.addError(subunit.RemotedTestCase(testname), subunit.RemoteError(u"Test was never started"))
                 else:
                     statistics['TESTS_UNEXPECTED_OK']+=1
-                    msg_ops.addUnexpectedSuccess(test, remote_error)
+                    msg_ops.addUnexpectedSuccess(test)
                     exitcode = 1
             elif result in ("failure", "fail"):
                 try:
@@ -312,11 +312,11 @@ class FilterOps(unittest.TestResult):
         self._ops.addExpectedFailure(test, err)
         self.output = None
 
-    def addUnexpectedSuccess(self, test, err=None):
+    def addUnexpectedSuccess(self, test):
         test = self._add_prefix(test)
         self.uxsuccess_added+=1
         self.total_uxsuccess+=1
-        self._ops.addUnexpectedSuccess(test, err)
+        self._ops.addUnexpectedSuccess(test)
         if self.output:
             self._ops.output_msg(self.output)
         self.output = None
-- 
2.1.4



More information about the samba-technical mailing list