Mercurial > hg > mercurial-source
comparison tests/run-tests.py @ 21436:4528e95345d7
run-tests: define cleanup() on unittest class
We need a cleanup() on our unittest TestCase class to conform with the
execution API. This will eventually be replaced by tearDown().
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 17 May 2014 12:35:44 -0700 |
parents | f376f56a354e |
children | d9532be2fc4d |
comparison
equal
deleted
inserted
replaced
21435:f376f56a354e | 21436:4528e95345d7 |
---|---|
1338 elif code == 'i': | 1338 elif code == 'i': |
1339 self._result.addIgnore(self, msg) | 1339 self._result.addIgnore(self, msg) |
1340 else: | 1340 else: |
1341 self.fail('Unknown test result code: %s' % code) | 1341 self.fail('Unknown test result code: %s' % code) |
1342 | 1342 |
1343 # We need this proxy until tearDown() is implemented. | |
1344 def cleanup(self): | |
1345 return t.cleanup() | |
1346 | |
1343 return MercurialTest(test) | 1347 return MercurialTest(test) |
1344 | 1348 |
1345 def _cleanup(self): | 1349 def _cleanup(self): |
1346 """Clean up state from this test invocation.""" | 1350 """Clean up state from this test invocation.""" |
1347 | 1351 |