[issue24928] mock.patch.dict spoils order of items in collections.OrderedDict
R. David Murray
report at bugs.python.org
Mon Aug 24 22:02:24 CEST 2015
R. David Murray added the comment:
Based on reading the patch.dict doct, I'm guessing that that dict call is making a copy in order to do a restore later. Perhaps replacing the dict call with a copy call would be sufficient? (I haven't looked at the dict.patch code).
----------
nosy: +r.david.murray, rbcollins
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24928>
_______________________________________
More information about the Python-bugs-list
mailing list