From b4df9ad298a6a48bb729372d54eb3ba24aec2fcd Mon Sep 17 00:00:00 2001 From: imSp4rky Date: Tue, 24 Nov 2026 18:14:52 -0700 Subject: [PATCH] test(wire): accept the unhashable-type message of every Python version --- tests/core/test_wire.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/core/test_wire.py b/tests/core/test_wire.py index b3fb222d..2646adaf 100644 --- a/tests/core/test_wire.py +++ b/tests/core/test_wire.py @@ -1261,7 +1261,7 @@ def test_an_attachment_over_the_inline_limit_is_skipped(tmp_path: Path, monkeypa def test_an_export_track_of_an_unhashable_type_is_refused_as_before() -> None: - with pytest.raises(TypeError, match=re.escape("cannot use 'dict' as a dict key")): + with pytest.raises(TypeError, match="unhashable type|as a dict key"): track_from_dict({**EXPORT_VIDEO, "type": {"a": 1}})