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}")