selftest: Fix formatting of failure (traceback and options swapped in format string)
authorAndrew Bartlett <abartlet@samba.org>
Mon, 9 Nov 2020 22:21:24 +0000 (11:21 +1300)
committerGary Lockyer <gary@samba.org>
Wed, 11 Nov 2020 01:15:39 +0000 (01:15 +0000)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
python/samba/tests/krb5/as_canonicalization_tests.py

index 221ff486fd8faebc8fe02f08c03c86c735436fa5..f0e9f6307f6747f2f24637704df1ebb30d59f000 100755 (executable)
@@ -296,8 +296,8 @@ class KerberosASCanonicalizationTests(RawKerberosTest):
         except pyasn1.error.PyAsn1Error as e:
             import traceback
             self.fail("ASN1 Error, Options {0:08b}:{1} {2}".format(
-                traceback.format_exc(),
                 data.options,
+                traceback.format_exc(),
                 e))
         # If as_req triggered an expected server error response
         # No need to test the response data.