Skip to content
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

test(solver): increase test coverage by searching for copies instead of the same instance #5695

Merged
merged 1 commit into from
May 26, 2022

Conversation

radoering
Copy link
Member

While playing around with python-poetry/poetry-core#370, I noticed that Dependency.__eq__() was never called in the test even though there are cache hits. I assume that before calling __eq__(), for performance reasons there is a check if the exact same object is in the cache.

Thus, I changed the test to search for copies to force a call to __eq__().

@abn abn merged commit ff35c28 into python-poetry:master May 26, 2022
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 29, 2024
@radoering radoering deleted the test-coverage-dependency-cache branch November 24, 2024 12:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants