We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13e498b commit 40f00acCopy full SHA for 40f00ac
testing/python/approx.py
@@ -1051,8 +1051,8 @@ def test_strange_sequence(self):
1051
1052
def test_approx_dicts_with_mismatch_on_keys(self) -> None:
1053
"""https://github.com/pytest-dev/pytest/issues/13816"""
1054
- expected = {"a": 1, "c": 3}
1055
- actual = {"a": 1, "b": 3}
+ expected = {"a": 1, "b": 3}
+ actual = {"a": 1, "c": 3}
1056
1057
with pytest.raises(
1058
AssertionError,
@@ -1061,7 +1061,7 @@ def test_approx_dicts_with_mismatch_on_keys(self) -> None:
1061
"expected dict_keys(['a', 'b']) but got dict_keys(['a', 'c'])"
1062
),
1063
):
1064
- assert expected == approx(actual)
+ assert actual == approx(expected)
1065
1066
1067
class MyVec3: # incomplete
0 commit comments