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.
This commit is contained in:
Shay 2026-05-14 19:52:47 -07:00
parent 92be98fbdf
commit 8ed6793a03

View file

@ -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)