]> granicus.if.org Git - python/commit
bpo-37685: Fixed comparisons of datetime.timedelta and datetime.timezone. (GH-14996)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 4 Aug 2019 10:01:55 +0000 (03:01 -0700)
committerGitHub <noreply@github.com>
Sun, 4 Aug 2019 10:01:55 +0000 (03:01 -0700)
commitdde944f9df8dea28c07935ebd6de06db7e575c12
tree46e70ac8147a94faa90941450d57de97c8dadbba
parent4e402d37eb4009140421365acbeff78104b108e0
bpo-37685: Fixed comparisons of datetime.timedelta and datetime.timezone. (GH-14996)

There was a discrepancy between the Python and C implementations.

Add singletons ALWAYS_EQ, LARGEST and SMALLEST in test.support
to test mixed type comparison.
(cherry picked from commit 17e52649c0e7e9389f1cc2444a53f059e24e6bca)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Doc/library/test.rst
Lib/datetime.py
Lib/test/datetimetester.py
Lib/test/support/__init__.py
Lib/test/test_ipaddress.py
Misc/NEWS.d/next/Library/2019-07-28-22-25-25.bpo-37685._3bN9f.rst [new file with mode: 0644]
Modules/_datetimemodule.c