# HG changeset patch # User Gregory Szorc # Date 2014-04-22 20:37:27 # Node ID c908ff8875897765904a7a7ffcf5645821c1571f # Parent 8a4ef661f08d1efc0f5358e06f6f3b5ceebf0ae6 run-tests: implement Test.__str__ unittest sometimes does a str(test) and the default implementation doesn't do the right thing. So we override it. diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -387,6 +387,9 @@ class Test(object): # will try again. shutil.rmtree(self._threadtmp, True) + def __str__(self): + return self.name + def setUp(self): """Tasks to perform before run().""" self._finished = False