Skip to content

Commit 40f00ac

Browse files
committed
fix(testing): correct expected and actual dictionary keys
1 parent 13e498b commit 40f00ac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

testing/python/approx.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,8 +1051,8 @@ def test_strange_sequence(self):
10511051

10521052
def test_approx_dicts_with_mismatch_on_keys(self) -> None:
10531053
"""https://github.com/pytest-dev/pytest/issues/13816"""
1054-
expected = {"a": 1, "c": 3}
1055-
actual = {"a": 1, "b": 3}
1054+
expected = {"a": 1, "b": 3}
1055+
actual = {"a": 1, "c": 3}
10561056

10571057
with pytest.raises(
10581058
AssertionError,
@@ -1061,7 +1061,7 @@ def test_approx_dicts_with_mismatch_on_keys(self) -> None:
10611061
"expected dict_keys(['a', 'b']) but got dict_keys(['a', 'c'])"
10621062
),
10631063
):
1064-
assert expected == approx(actual)
1064+
assert actual == approx(expected)
10651065

10661066

10671067
class MyVec3: # incomplete

0 commit comments

Comments
 (0)