-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
bpo-26915: Test identity first in membership operation #503
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@zhangyangyu, thanks for your PR! By analyzing the history of the files in this pull request, we identified @rhettinger, @benjaminp, @1st1, @tiran and @ezio-melotti to be potential reviewers. |
The code LGTM, but I have no opinion about this issue. |
Lib/test/test_collections.py
Outdated
ItemsView({1: nan, 2: obj}), | ||
ValuesView({1: nan, 2: obj}) | ||
] | ||
for container in containers: | ||
for elem in container: | ||
self.assertIn(elem, container) | ||
self.assertEqual(seq.index(nan), 0) | ||
self.assertNotEqual(seq.index(nan), 1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This assertNotEqual seems redundant.
… count() methods of collections.abc.Sequence (pythonGH-503)
Bumps [cachetools](https://github.com/tkem/cachetools) from 4.2.4 to 5.0.0. - [Release notes](https://github.com/tkem/cachetools/releases) - [Changelog](https://github.com/tkem/cachetools/blob/master/CHANGELOG.rst) - [Commits](tkem/cachetools@v4.2.4...v5.0.0) --- updated-dependencies: - dependency-name: cachetools dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Mariatta Wijaya <[email protected]>
No description provided.