]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
tests/krb5: Fix assertion messages
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Mon, 2 Oct 2023 02:06:45 +0000 (15:06 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 13 Oct 2023 03:50:31 +0000 (03:50 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/krb5/raw_testcase.py

index af30921aa99503aea7c005757c4d1d9c556ef4e0..2681356f3cfa8e9ce7d24dc6990b8280131a8063 100644 (file)
@@ -4576,9 +4576,9 @@ class RawKerberosTest(TestCase):
                     continue
 
                 if expected_claims:
-                    empty_msg = ', and {claims_type} were expected'
+                    empty_msg = f', and {claims_type} were expected'
                 else:
-                    empty_msg = ' for {claims_type} (should be missing)'
+                    empty_msg = f' for {claims_type} (should be missing)'
 
                 claims_metadata_ndr = ndr_unpack(claims.CLAIMS_SET_METADATA_NDR,
                                                  remaining)