]> git.ipfire.org Git - thirdparty/hostap.git/commit
tests: Explicitly encode str to bytes when needed for python3
authorMasashi Honma <masashi.honma@gmail.com>
Sat, 2 Feb 2019 14:25:57 +0000 (16:25 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 4 Feb 2019 10:26:33 +0000 (12:26 +0200)
commitf94df3c0b0f8a290a07da83e055af0602dffe8cf
tree4dff42272c00af8065649a32fd3826da89198257
parenta444a6d2623c6e6a4cc547faf5521f2e9e83b9b3
tests: Explicitly encode str to bytes when needed for python3

Avoid implicit conversion errors when constructing bytes objects or
passing a str object to a function that needs a bytes object.

Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_ap_psk.py
tests/hwsim/test_ap_wps.py
tests/hwsim/test_eap_proto.py
tests/hwsim/test_fils.py
tests/hwsim/test_gas.py
tests/hwsim/test_p2p_messages.py