mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
pytest: remove py2 str/bytes workaround in samr_change_password
It is likely not necessary to cast to list(). Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
2dc111b4c1
commit
bd3792005b
@ -114,7 +114,7 @@ class SamrPasswordTests(RpcInterfaceTestCase):
|
||||
def encode_pw_buffer(password):
|
||||
data = bytearray([0] * 516)
|
||||
|
||||
p = samba.string_to_byte_array(password.encode('utf-16-le'))
|
||||
p = list(password.encode('utf-16-le'))
|
||||
plen = len(p)
|
||||
|
||||
b = generate_random_bytes(512 - plen)
|
||||
|
Loading…
Reference in New Issue
Block a user