]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.7] bpo-37685: Fixed comparisons of datetime.timedelta and datetime.timezone. ...
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 4 Aug 2019 12:28:21 +0000 (15:28 +0300)
committerGitHub <noreply@github.com>
Sun, 4 Aug 2019 12:28:21 +0000 (15:28 +0300)
commit6ed20e54e4c110e9adcfb70aba85310625e3edb4
tree2221bcaf3ca7f30fb6c855b74c8e28419cfd3c25
parent0bb8f22abd81751eab1125132cdaa31b2083c735
[3.7] bpo-37685: Fixed comparisons of datetime.timedelta and datetime.timezone. (GH-14996) (GH-15104)

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)
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