From c750c1db7f2e9127efac978aa0490015eb3c24d7 Mon Sep 17 00:00:00 2001 From: Joseph Sutton Date: Tue, 24 Oct 2023 16:32:31 +1300 Subject: [PATCH] =?utf8?q?python:tests:=20Remove=20unnecessary=20f?= =?utf8?q?=E2=80=90strings?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- python/samba/tests/dns_packet.py | 4 ++-- python/samba/tests/krb5/authn_policy_tests.py | 6 +++--- python/samba/tests/samba_tool/domain_auth_silo.py | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/python/samba/tests/dns_packet.py b/python/samba/tests/dns_packet.py index ae7bcb3ad8c..61d5aabcc9d 100644 --- a/python/samba/tests/dns_packet.py +++ b/python/samba/tests/dns_packet.py @@ -133,7 +133,7 @@ class TestDnsPacketBase(TestCase): # unresponsive. if r != [s]: ok = self._known_good_query() - self.assertTrue(ok, f"the server is unresponsive") + self.assertTrue(ok, "the server is unresponsive") def _known_good_query(self): if self.server[1] == 53: @@ -167,7 +167,7 @@ class TestDnsPacketBase(TestCase): # but it is not reasonable to render the server # unresponsive. ok = self._known_good_query() - self.assertTrue(ok, f"the server is unresponsive") + self.assertTrue(ok, "the server is unresponsive") class TestDnsPackets(TestDnsPacketBase): diff --git a/python/samba/tests/krb5/authn_policy_tests.py b/python/samba/tests/krb5/authn_policy_tests.py index 8c5216ec7be..3d70e9a730c 100755 --- a/python/samba/tests/krb5/authn_policy_tests.py +++ b/python/samba/tests/krb5/authn_policy_tests.py @@ -5033,7 +5033,7 @@ class AuthnPolicyTests(AuthnPolicyBaseTests): # Create an authentication policy that applies to a user and explicitly # denies authentication with any device. - denied = f'O:SYD:(D;;CR;;;WD)' + denied = 'O:SYD:(D;;CR;;;WD)' policy = self.create_authn_policy(enforced=True, user_allowed_from=denied) @@ -5319,7 +5319,7 @@ class AuthnPolicyTests(AuthnPolicyBaseTests): # Create an authentication policy that applies to a user and explicitly # denies authentication with any device. - denied = f'O:SYD:(D;;CR;;;WD)' + denied = 'O:SYD:(D;;CR;;;WD)' policy = self.create_authn_policy(enforced=True, user_allowed_from=denied) @@ -5411,7 +5411,7 @@ class AuthnPolicyTests(AuthnPolicyBaseTests): # Create an authentication policy that applies to a user and explicitly # denies authentication with any device. - denied = f'O:SYD:(D;;CR;;;WD)' + denied = 'O:SYD:(D;;CR;;;WD)' policy = self.create_authn_policy(enforced=True, user_allowed_from=denied) diff --git a/python/samba/tests/samba_tool/domain_auth_silo.py b/python/samba/tests/samba_tool/domain_auth_silo.py index 668f8bf9c1d..c1d73058b43 100644 --- a/python/samba/tests/samba_tool/domain_auth_silo.py +++ b/python/samba/tests/samba_tool/domain_auth_silo.py @@ -216,7 +216,7 @@ class AuthSiloCmdTestCase(BaseAuthCmdTest): "--name", "policyNotFound", "--policy", "Invalid Policy") self.assertEqual(result, -1) - self.assertIn(f"Authentication policy Invalid Policy not found.", err) + self.assertIn("Authentication policy Invalid Policy not found.", err) def test_authentication_silo_create_fails(self): """Test creating an authentication silo, but it fails.""" -- 2.47.3