[issue24928] mock.patch.dict spoils order of items in collections.OrderedDict
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 <http://bugs.python.org/issue24928> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8860] Rounding in timedelta constructor is inconsistent with that in timedelta arithmetics
Yu Tomita added the comment: I updated the unittest for the patch by Mark. The test fails without the patch and passes with it. Also, I updated the patch to work in Python 3.4 (_datetime.c instead of datetime.c). -- nosy: +nekobon Added file: http://bugs.python.org/file29458/issue8860.patch ___ Python tracker <http://bugs.python.org/issue8860> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com