diff --git a/python/samba/tests/krb5/kdc_base_test.py b/python/samba/tests/krb5/kdc_base_test.py index 8edfb75ff85..976e80e035f 100644 --- a/python/samba/tests/krb5/kdc_base_test.py +++ b/python/samba/tests/krb5/kdc_base_test.py @@ -894,7 +894,6 @@ class KDCBaseTest(TestCaseInTempDir, RawKerberosTest): domain = samdb.domain_netbios_name().upper() password = generate_random_password(32, 32) - utf16pw = ('"%s"' % password).encode('utf-16-le') try: net_ctx.set_password(newpassword=password,