]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-37555: Replacing __eq__ with == to sidestep NotImplemented
authorElizabeth Uselton <elizabeth.uselton@rover.com>
Sat, 20 Jul 2019 03:45:52 +0000 (20:45 -0700)
committerElizabeth Uselton <elizabeth.uselton@rover.com>
Sat, 20 Jul 2019 03:45:52 +0000 (20:45 -0700)
commitf295eaca5bceac6636c0e2b10e6c7d9a8ee8296a
tree66bb3f3603aa54fced66320dbfab307505bf8224
parentf0e841148fb7baf1782a9f855b0593408f3f9622
bpo-37555: Replacing __eq__ with == to sidestep NotImplemented

bool(NotImplemented) returns True, so it's necessary to use ==
instead of __eq__ in this comparison.
Lib/unittest/mock.py