[issue24928] mock.patch.dict spoils order of items in collections.OrderedDict

Emmanuel Arias report at bugs.python.org
Sat Jan 5 08:38:43 EST 2019


Emmanuel Arias <emmanuelarias30 at gmail.com> added the comment:

Hi xtreak,

> Thanks @nekobon for the patch. I am triaging old mock related issues. I think dict insertion order is maintained from 3.6 and guaranteed with 3.7 and above. But it would be good to add the unit test in the patch as a PR. I ran the test on master and it passes.

I am running the test on master and fail. I don't think that the orderdict on patch.dict is implement. 

Or maybe I am wronging somewhere

----------

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


More information about the Python-bugs-list mailing list