Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb9ae65 commit aa4240eCopy full SHA for aa4240e
1 file changed
Lib/test/test_defaultdict.py
@@ -212,12 +212,12 @@ def __call__(self):
212
return {}
213
def __repr__(self):
214
repr(dd)
215
- return "ProblematicFactory()"
+ return f"ProblematicFactory for {dd}"
216
217
dd = defaultdict(ProblematicFactory())
218
# Should not raise RecursionError
219
r = repr(dd)
220
- self.assertIn('ProblematicFactory()', r)
+ self.assertIn("ProblematicFactory for", r)
221
222
if __name__ == "__main__":
223
unittest.main()
0 commit comments