mirror of
https://github.com/python/cpython.git
synced 2025-08-27 12:16:04 +00:00
bpo-14265: Adds fully qualified test name to unittest output (GH-32138)
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
This commit is contained in:
parent
356997cccc
commit
755be9b150
5 changed files with 63 additions and 49 deletions
|
@ -478,7 +478,7 @@ class TestCase(object):
|
|||
return hash((type(self), self._testMethodName))
|
||||
|
||||
def __str__(self):
|
||||
return "%s (%s)" % (self._testMethodName, strclass(self.__class__))
|
||||
return "%s (%s.%s)" % (self._testMethodName, strclass(self.__class__), self._testMethodName)
|
||||
|
||||
def __repr__(self):
|
||||
return "<%s testMethod=%s>" % \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue