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 8af2566 commit 10c83c5Copy full SHA for 10c83c5
testing/python/approx.py
@@ -1050,8 +1050,8 @@ def test_strange_sequence(self):
1050
1051
def test_approx_dicts_with_mismatch_on_keys(self) -> None:
1052
"""https://github.com/pytest-dev/pytest/issues/13816"""
1053
- expected = {"a": 1, "c": 3}
1054
- actual = {"a": 1, "b": 3}
+ expected = {"a": 1, "b": 3}
+ actual = {"a": 1, "c": 3}
1055
1056
with pytest.raises(
1057
AssertionError,
@@ -1060,7 +1060,7 @@ def test_approx_dicts_with_mismatch_on_keys(self) -> None:
1060
"expected dict_keys(['a', 'b']) but got dict_keys(['a', 'c'])"
1061
),
1062
):
1063
- assert expected == approx(actual)
+ assert actual == approx(expected)
1064
1065
1066
class MyVec3: # incomplete
0 commit comments