# HG changeset patch # User Gregory Szorc # Date 1398199047 25200 # 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 -r 8a4ef661f08d -r c908ff887589 tests/run-tests.py --- a/tests/run-tests.py Mon Apr 21 12:15:55 2014 -0700 +++ b/tests/run-tests.py Tue Apr 22 13:37:27 2014 -0700 @@ -387,6 +387,9 @@ # 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