Skip to content

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

Merged
abn merged 1 commit intopython-poetry:masterfrom
radoering:test-coverage-dependency-cache
May 26, 2022
Merged

test(solver): increase test coverage by searching for copies instead of the same instance#5695
abn merged 1 commit intopython-poetry:masterfrom
radoering:test-coverage-dependency-cache

Conversation

@radoering
Copy link
Copy Markdown
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
@github-actions
Copy link
Copy Markdown

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