From 8ed6793a03426989c041d06e6df38c18f3336c7f Mon Sep 17 00:00:00 2001 From: Shay Date: Thu, 14 May 2026 19:52:47 -0700 Subject: [PATCH] fix: use raw string for deprecated_call match pattern in test_identity_gate The backslash escapes in the regex match pattern were plain string escapes, not regex escapes. Add r-prefix to fix SyntaxWarning. --- tests/test_identity_gate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_identity_gate.py b/tests/test_identity_gate.py index 3f8f10d4..3791fa7d 100644 --- a/tests/test_identity_gate.py +++ b/tests/test_identity_gate.py @@ -87,7 +87,7 @@ class TestIdentityScore: assert isinstance(axis_id, str) def test_legacy_constructor_emits_deprecation_warning(self): - with pytest.deprecated_call(match="IdentityCheck\(manifold=\.\.\.\) is deprecated"): + with pytest.deprecated_call(match=r"IdentityCheck\(manifold=\.\.\.\) is deprecated"): check = IdentityCheck(manifold=_make_manifold()) score = check.check(_make_trajectory()) assert isinstance(score, IdentityScore)