From ae27164b23307c357c9f3e06ca740a9de7b0d9c7 Mon Sep 17 00:00:00 2001 From: Roel de Jong <12800443+twiggler@users.noreply.github.com> Date: Mon, 9 Mar 2026 12:01:51 +0100 Subject: [PATCH] fix: conform to latest ruff version --- tests/test_ldap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_ldap.py b/tests/test_ldap.py index b8654c0..7ad66cc 100644 --- a/tests/test_ldap.py +++ b/tests/test_ldap.py @@ -431,7 +431,7 @@ def test_format_with_all_operators(expected: str, attribute: str, op: str, value def test_error_no_comparison_operator() -> None: """Test error for missing comparison operator.""" - with pytest.raises(InvalidQueryError, match="No comparison operator found in query: .+ Expected one of .*"): + with pytest.raises(InvalidQueryError, match=r"No comparison operator found in query: .+ Expected one of .*"): SearchFilter.parse("(attributename)", optimize=False)