[issue32411] Idlelib.browser: stop sorting dicts created by pyclbr

Cheryl Sabella report at bugs.python.org
Sun Dec 24 19:42:23 EST 2017


Cheryl Sabella <chekat2 at gmail.com> added the comment:

Terry,

In test_browser, would it be a good test if mock_pyclbr_tree was created as 
`mock_pyclbr_tree = {'C0': C0, 'f0': f0}` 
instead of 
`mock_pyclbr_tree = {'f0': f0, 'C0': C0}`?

The reason that I'm asking is that, under 2.7 and 3.3, this dictionary does not retain the insertion order, but changes it from (C0, f0) to (f0, C0).  

Or did you just want a test that checks that the line numbers are still in order when the code is returned from transform_children?

----------
nosy: +csabella

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


More information about the Python-bugs-list mailing list