Skip to content

Commit 63e43a0

Browse files
Copilotnstarman
andauthored
Refine mapping equality test setup
Agent-Logs-Url: https://github.com/GalacticDynamics/xmmutablemap/sessions/f39253f1-d8ea-46eb-8a8e-f004866a473d Co-authored-by: nstarman <8949649+nstarman@users.noreply.github.com>
1 parent be69843 commit 63e43a0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/test_immutablemap.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,9 @@ def test_hash(self, d: ImmutableMap[str, Any]) -> None:
6464
with pytest.raises(TypeError, match="unhashable type: 'set'"):
6565
hash(d)
6666

67-
def test_eq_with_other_mappings(self, d: ImmutableMap[str, Any]) -> None:
67+
def test_eq_with_other_mappings(self) -> None:
6868
"""Test mapping interoperability for `__eq__`."""
69+
d = ImmutableMap(a=1, b=2)
6970
assert d == {"a": 1, "b": 2}
7071
assert d == OrderedDict([("a", 1), ("b", 2)])
7172
assert d == MappingProxyType({"a": 1, "b": 2})

0 commit comments

Comments
 (0)