]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-37555: Add regression tests for mock ANY ordering issues
authorElizabeth Uselton <elizabeth.uselton@rover.com>
Mon, 15 Jul 2019 01:51:43 +0000 (18:51 -0700)
committerElizabeth Uselton <elizabeth.uselton@rover.com>
Mon, 15 Jul 2019 01:51:43 +0000 (18:51 -0700)
commit49c5310ad493c4356dd3bc58c03653cd9466c4fa
treec92a0dd0ce44dc70bcbdcefa7d7363b209999b94
parentad99a9d4c280c1a6ab163a279c0dc36833d29122
bpo-37555: Add regression tests for mock ANY ordering issues

Add regression tests for whether __eq__ is order agnostic on _Call and _CallList, which is useful for comparisons involving ANY, especially if the ANY comparison is to a class not defaulting __eq__ to NotImplemented.

Co-authored-by: Neal Finne <neal@nealfinne.com>
Lib/unittest/test/testmock/testhelpers.py