run-tests: define cleanup() on unittest class
authorGregory Szorc <gregory.szorc@gmail.com>
Sat, 17 May 2014 12:35:44 -0700
changeset 21436 4528e95345d7
parent 21435 f376f56a354e
child 21437 d9532be2fc4d
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().
tests/run-tests.py
--- 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):