Missed this spot where module.cleanup() can be passed a test instance to

facilitate session recording.  This happens inside an instance method where the
test instance is well known.

llvm-svn: 116649
This commit is contained in:
Johnny Chen 2010-10-16 00:08:49 +00:00
parent 690fcef762
commit 24d6ea25f8
1 changed files with 1 additions and 1 deletions

View File

@ -458,7 +458,7 @@ class TestBase(unittest2.TestCase):
# Perform registered teardown cleanup.
if doCleanup and self.doTearDownCleanup:
module = __import__(sys.platform)
if not module.cleanup(dictionary=self.dict):
if not module.cleanup(self, dictionary=self.dict):
raise Exception("Don't know how to do cleanup")
# See also LLDBTestResult (dotest.py) which is a singlton class derived