diff options
Diffstat (limited to 'Lib/test/test_defaultdict.py')
-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. |