mirror of
https://github.com/python/cpython.git
synced 2025-07-31 23:23:11 +00:00
Support for old TestResult object (unittest) with warnings when using unsupported features.
This commit is contained in:
parent
4b81bc7fe6
commit
ae3db0a12b
3 changed files with 77 additions and 8 deletions
|
@ -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)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue