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:
parent
92be98fbdf
commit
8ed6793a03
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue