Addition of setUpClass and setUpModule shared fixtures to unittest.

This commit is contained in:
Michael Foord 2010-03-07 22:04:55 +00:00
parent 0d4bfec134
commit 5ffa325a82
5 changed files with 600 additions and 11 deletions

View file

@ -16,6 +16,8 @@ class TestResult(object):
contain tuples of (testcase, exceptioninfo), where exceptioninfo is the
formatted traceback of the error that occurred.
"""
_previousTestClass = None
_moduleSetUpFailed = False
def __init__(self, stream=None, descriptions=None, verbosity=None):
self.failures = []
self.errors = []