DeepDiff: Deep Difference and search of any Python object/data. DeepHash: Hash of any object based on its contents. Delta: Use deltas to reconstruct objects by adding deltas together.
Describe the bug
The exclude_regex_paths is not working if the keys are different and would be filtered out. Only working if the threshold_to_diff_deeper is set to 0
Describe the bug The exclude_regex_paths is not working if the keys are different and would be filtered out. Only working if the threshold_to_diff_deeper is set to 0
To Reproduce t1 = {'a': [1, 2, [3, {'foo1': 'bar'}]]} t2 = {'a': [1, 2, [3, {'foo2': 'bar'}]]} diff = deepdiff.DeepDiff(t1, t2, exclude_regex_paths="['foo.']")
Expected behavior Diff is expected to be empty
OS, DeepDiff version and Python version (please complete the following information):
Additional context Example from: https://zepworks.com/deepdiff/current/exclude_paths.html diff = deepdiff.DeepDiff(t1, t2, exclude_regex_paths="['foo.']", threshold_to_diff_deeper=0) is working and produces empty diff