Issue #22032: __qualname__ instead of __name__ is now always used to format

fully qualified class names of Python implemented classes.
This commit is contained in:
Serhiy Storchaka 2014-07-22 15:00:37 +03:00
parent c09e9752c6
commit 521e5860a5
16 changed files with 24 additions and 20 deletions

View file

@ -52,7 +52,7 @@ def safe_repr(obj, short=False):
return result[:_MAX_LENGTH] + ' [truncated]...'
def strclass(cls):
return "%s.%s" % (cls.__module__, cls.__name__)
return "%s.%s" % (cls.__module__, cls.__qualname__)
def sorted_list_difference(expected, actual):
"""Finds elements in only one or the other of two, sorted input lists.