diff options
| author | Michael Foord <fuzzyman@voidspace.org.uk> | 2010-02-22 23:28:32 (GMT) |
|---|---|---|
| committer | Michael Foord <fuzzyman@voidspace.org.uk> | 2010-02-22 23:28:32 (GMT) |
| commit | ae3db0a12b0c5ca42ea9fe54161d56c57269ea92 (patch) | |
| tree | 5a636558ffc55d6f41efdece75cb2163056b4ce1 /Lib/unittest/result.py | |
| parent | 4b81bc7fe6aad900cf2904c8a22a2c70a8b42659 (diff) | |
| download | cpython-ae3db0a12b0c5ca42ea9fe54161d56c57269ea92.zip cpython-ae3db0a12b0c5ca42ea9fe54161d56c57269ea92.tar.gz cpython-ae3db0a12b0c5ca42ea9fe54161d56c57269ea92.tar.bz2 | |
Support for old TestResult object (unittest) with warnings when using unsupported features.
Diffstat (limited to 'Lib/unittest/result.py')
| -rw-r--r-- | Lib/unittest/result.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/unittest/result.py b/Lib/unittest/result.py index 4538304..bb2a47c 100644 --- a/Lib/unittest/result.py +++ b/Lib/unittest/result.py @@ -107,6 +107,6 @@ class TestResult(object): return length def __repr__(self): - return "<%s run=%i errors=%i failures=%i>" % \ + return ("<%s run=%i errors=%i failures=%i>" % (util.strclass(self.__class__), self.testsRun, len(self.errors), - len(self.failures)) + len(self.failures))) |
