mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Merged revisions 81853 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r81853 | michael.foord | 2010-06-08 23:44:52 +0100 (Tue, 08 Jun 2010) | 1 line Issue 8948. cleanup functions are not run by unittest.TestCase.debug(), plus class and module teardowns are not run by unittest.TestSuite.debug(). ........
This commit is contained in:
parent
c73013127b
commit
b874874194
4 changed files with 116 additions and 2 deletions
|
@ -389,6 +389,9 @@ class TestCase(object):
|
|||
self.setUp()
|
||||
getattr(self, self._testMethodName)()
|
||||
self.tearDown()
|
||||
while self._cleanups:
|
||||
function, args, kwargs = self._cleanups.pop(-1)
|
||||
function(*args, **kwargs)
|
||||
|
||||
def skipTest(self, reason):
|
||||
"""Skip this test."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue