From 7efe6b0ab42f7b6af5c82a8f6d412f9da16a963b Mon Sep 17 00:00:00 2001 From: Joseph Sutton Date: Mon, 2 Oct 2023 15:07:16 +1300 Subject: [PATCH] python:tests: Correct search expression Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- python/samba/tests/sid_strings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/samba/tests/sid_strings.py b/python/samba/tests/sid_strings.py index fa2b84d16ab..9f174bfd2aa 100644 --- a/python/samba/tests/sid_strings.py +++ b/python/samba/tests/sid_strings.py @@ -560,7 +560,7 @@ class SidStringsAsDnInSearchFilter(SidStringBase): try: self.ldb.search(base=basedn, scope=ldb.SCOPE_ONELEVEL, - expression="(distinguishedName=)") + expression=f"(distinguishedName=)") except ldb.LdbError as e: self.fail(f"expected no failure, got {e}")