]> granicus.if.org Git - python/commit
bpo-37685: Fixed comparisons of datetime.timedelta and datetime.timezone. (GH-14996)
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 4 Aug 2019 09:38:46 +0000 (12:38 +0300)
committerGitHub <noreply@github.com>
Sun, 4 Aug 2019 09:38:46 +0000 (12:38 +0300)
commit17e52649c0e7e9389f1cc2444a53f059e24e6bca
tree2cfdcdaefd375aaf93ef6973f507ffb768ee5472
parent5c72badd06a962fe0018ceb9916f3ae66314ea8e
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.
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