[issue36201] AssertCountEqual does not work for nested dictionaries.

Raymond Hettinger report at bugs.python.org
Tue Mar 5 20:56:04 EST 2019


Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:

I believe this is outside the scope of what intended.   For the most part, the test methods need to be as direct and non-magical as possible so that we're clear on what is being tested.   Another issue with built in recursion is that different people have different notions of what is atomic, different notions of search order (depth first, breadth first, pre-order, in-order, post-order, etc), and different notions on maximum depth etc.  The unittest module leaves those decisions to the tester and instead focuses on simple and direct properties of objects under test.

----------
assignee:  -> michael.foord
nosy: +lisroach, michael.foord, rhettinger, vstinner

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36201>
_______________________________________


More information about the Python-bugs-list mailing list