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

Bugfix for approx on mismatched dictionaries #13046

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

dvdliu
Copy link

@dvdliu dvdliu commented Dec 9, 2024

Main Changes

Closes #12444

Tests

Regression test added for the issue mentioned in the above issue

@marcelotrevisani
Copy link
Contributor

It is missing the changelog, could you please add it?

@psf-chronographer psf-chronographer bot added the bot:chronographer:provided (automation) changelog entry is part of PR label Dec 20, 2024
@marcelotrevisani
Copy link
Contributor

marcelotrevisani commented Dec 20, 2024

@nicoddemus @RonnyPfannschmidt , I also had this problem recently and this seems to be a nice fix. Could you review and approve if you are fine with it please?

Copy link
Member

@RonnyPfannschmidt RonnyPfannschmidt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe its necessary to report tge additional keys

for (approx_key, approx_value), other_value in zip(
approx_side_as_map.items(), other_side.values()
):
for approx_key, approx_value in approx_side_as_map.items():
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just noted that the fix ignores additional keys in the other side

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot:chronographer:provided (automation) changelog entry is part of PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pytest approx wrong formatting return - printing all values as wrong.
3 participants