summaryrefslogtreecommitdiff
blob: ae0ea71566a67657e79708156322fc9eb980fbf4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Index: twisted/trial/reporter.py
===================================================================
--- twisted/trial/reporter.py	(revision 17375)
+++ twisted/trial/reporter.py	(revision 17376)
@@ -71,7 +71,7 @@
         @type fail: L{failure.Failure} or L{tuple}
         """
         if isinstance(fail, tuple):
-            fail = failure.Failure(*fail)
+            fail = failure.Failure(fail[1], fail[0], fail[2])
         self.failures.append((test, fail))
 
     def addError(self, test, error):
@@ -81,7 +81,7 @@
         @type fail: L{failure.Failure} or L{tuple}
         """
         if isinstance(error, tuple):
-            error = failure.Failure(*error)
+            error = failure.Failure(error[1], error[0], error[2])
         self.errors.append((test, error))
 
     def addSkip(self, test, reason):