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

Karthikeyan Singaravelan report at bugs.python.org
Mon Dec 10 02:37:56 EST 2018


Karthikeyan Singaravelan <tir.karthi at gmail.com> added the comment:

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.

----------
nosy: +cjw296, mariocj89, xtreak
versions: +Python 3.7, Python 3.8 -Python 3.4, Python 3.5

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


More information about the Python-bugs-list mailing list