changeset 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
files tests/run-tests.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/run-tests.py	Sun Apr 20 12:45:44 2014 -0700
+++ b/tests/run-tests.py	Sat May 17 12:35:44 2014 -0700
@@ -1340,6 +1340,10 @@
                 else:
                     self.fail('Unknown test result code: %s' % code)
 
+            # We need this proxy until tearDown() is implemented.
+            def cleanup(self):
+                return t.cleanup()
+
         return MercurialTest(test)
 
     def _cleanup(self):