[issue24928] mock.patch.dict spoils order of items in collections.OrderedDict
Yu Tomita
report at bugs.python.org
Thu Sep 17 08:20:37 CEST 2015
Yu Tomita added the comment:
Submitting a patch.
To support both iterable and mapping in the same way as with dict(...), `values` is updated to be a list of length-2 iterables instead of using copy call.
Patch includes unittest which tests the reported problem.
----------
keywords: +patch
nosy: +nekobon
Added file: http://bugs.python.org/file40488/issue24928.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24928>
_______________________________________
More information about the Python-bugs-list
mailing list