pytest approx wrong formatting return - printing all values as wrong. #12444
Labels
topic: rewrite
related to the assertion rewrite mechanism
type: bug
problem that needs to be addressed
Hey! Thanks for this great library!
I am using pytest.approx to compare between 2 dicts (which are not in the same order), whenever the 2 dicts are equal the asserts passes. but if only 1 element is wrong the assert fails (as expected) but the output message shows as if all values were different instead of printing only the wrong one.
pytest == 8.2.0
python == 3.11.7
Ubuntu == 20.04
and the output I get from the two failing tests is:
The text was updated successfully, but these errors were encountered: