diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-09-21 11:24:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-21 11:24:13 (GMT) |
commit | b3a77964ea89a488fc0e920e3db6d8477279f19b (patch) | |
tree | 880d5770553aac324a7b29efdb233eca0cfbd38a /Lib | |
parent | 9adda0cdf89432386b7a04444a6199b580d287a1 (diff) | |
download | cpython-b3a77964ea89a488fc0e920e3db6d8477279f19b.zip cpython-b3a77964ea89a488fc0e920e3db6d8477279f19b.tar.gz cpython-b3a77964ea89a488fc0e920e3db6d8477279f19b.tar.bz2 |
bpo-27541: Reprs of subclasses of some classes now contain actual type name. (#3631)
Affected classes are bytearray, array, deque, defaultdict, count and repeat.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_defaultdict.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_defaultdict.py b/Lib/test/test_defaultdict.py index 7218349..b9f1fb9 100644 --- a/Lib/test/test_defaultdict.py +++ b/Lib/test/test_defaultdict.py @@ -157,8 +157,8 @@ class TestDefaultDict(unittest.TestCase): return [] d = sub() self.assertRegex(repr(d), - r"defaultdict\(<bound method .*sub\._factory " - r"of defaultdict\(\.\.\., \{\}\)>, \{\}\)") + r"sub\(<bound method .*sub\._factory " + r"of sub\(\.\.\., \{\}\)>, \{\}\)") # NOTE: printing a subclass of a builtin type does not call its # tp_print slot. So this part is essentially the same test as above. |