[Zope-Checkins] CVS: Zope2 - unittest.py:1.1.4.6
Andreas Jung
andreas@dhcp165.digicool.com
Mon, 12 Mar 2001 13:16:41 -0500
Update of /mnt/cvs-repository/Zope2/lib/python/Testing
In directory yetix:/work/Zope2/Catalog-BTrees-Integration/lib/python/Testing
Modified Files:
Tag: Catalog-BTrees-Integration
unittest.py
Log Message:
--- Updated File unittest.py in package Zope2 --
--- unittest.py 2001/03/08 11:29:19 1.1.4.5
+++ unittest.py 2001/03/12 18:16:39 1.1.4.6
@@ -63,11 +63,13 @@
contain tuples of (testcase, exceptioninfo), where exceptioninfo is a
tuple of values as returned by sys.exc_info().
"""
- def __init__(self):
+ def __init__(self,args=(),kw={}):
self.failures = []
self.errors = []
self.testsRun = 0
self.shouldStop = 0
+ self.__args = args
+ self.__kw = kw
def startTest(self, test):
"Called when the given test is about to be run"
@@ -146,7 +148,7 @@
return 1
def defaultTestResult(self):
- return TestResult()
+ return TestResult(self.__args,self.__kw)
def shortDescription(self):
"""Returns a one-line description of the test, or None if no