[issue36201] AssertCountEqual does not work for nested dictionaries.

2020-10-17 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
resolution:  -> rejected
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36201] AssertCountEqual does not work for nested dictionaries.

2020-10-17 Thread Irit Katriel


Irit Katriel  added the comment:

Should this be closed as won't fix?

--
nosy: +iritkatriel

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36201] AssertCountEqual does not work for nested dictionaries.

2019-03-06 Thread STINNER Victor


Change by STINNER Victor :


--
nosy:  -vstinner

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36201] AssertCountEqual does not work for nested dictionaries.

2019-03-05 Thread Lisa Roach


Lisa Roach  added the comment:

I agree with Raymond, I think this might end up complicating things too much. 
It is common in the unit test library to only recurse one level deep and not 
assume too much about the intentions of the tester.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36201] AssertCountEqual does not work for nested dictionaries.

2019-03-05 Thread Raymond Hettinger


Raymond Hettinger  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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36201] AssertCountEqual does not work for nested dictionaries.

2019-03-05 Thread Walter Qian


New submission from Walter Qian :

For dictionaries of dictionaries unittest.util._count_diff_all_purpose does not 
work correctly. It should recursively call itself when it encounters another 
dictionary.

--
components: Tests
messages: 337248
nosy: walterqian
priority: normal
severity: normal
status: open
title: AssertCountEqual does not work for nested dictionaries.
versions: Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com