summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-09-21 11:24:13 (GMT)
committerGitHub <noreply@github.com>2017-09-21 11:24:13 (GMT)
commitb3a77964ea89a488fc0e920e3db6d8477279f19b (patch)
tree880d5770553aac324a7b29efdb233eca0cfbd38a /Lib
parent9adda0cdf89432386b7a04444a6199b580d287a1 (diff)
downloadcpython-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.py4
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.