-
-
Notifications
You must be signed in to change notification settings - Fork 228
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
iterable_compare_func not working properly #414
Comments
Hello. The test are done inside a container with
|
Hello @seperman |
+1 I am also affected. |
+1 same |
@seperman Is there any info on this bug? |
Hello, thanks for reminding me. I have not had a chance to take a look at it yet. I will keep you posted once I fix it. PRs are always very welcome! |
I have opened a PR that fixes the issue. With the PR here are the outputs for the initial test case:
Note: I believe 6.1.0 is the latest version that will not have this bug. |
I believe this issue is fixed. PR #473 was merged last year, and the fix debuted in DeepDiff 8.0.0. |
@wolverdude Yes, this is fixed. This ticket can be closed. |
Please checkout the F.A.Q page before creating a bug ticket to make sure it is not already addressed.
Describe the bug
the issue is related to the use of the ability to compare iterable element with a customized function.
with an
iterable_compare_func
defined as in the documentation : to compare iterables only if they have the same id, the result of deepdiff is wrong as it is missing the differences.To Reproduce
Exactly with the same examples on documentation.
without iterable function - result is as expected
without iterable function - result is wrong
as you can see on verbosity_level=2 the element is marked as moved even if it is not even the same value ? how this could happen ?
Expected behavior
Expected behavior to list compare with ids so the change will be.
OS, DeepDiff version and Python version (please complete the following information):
The tests has been performed on several environments.
The text was updated successfully, but these errors were encountered: