From: Jouni Malinen Date: Sat, 28 Dec 2019 17:52:17 +0000 (+0200) Subject: tests: Fix he_supported() check with python3 X-Git-Tag: hostap_2_10~2067 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44adf014ffe2e65fe76334aeca052de0f8cbb2b8;p=thirdparty%2Fhostap.git tests: Fix he_supported() check with python3 This was making error paths on HE test cases fail with: TypeError: a bytes-like object is required, not 'str' Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_he.py b/tests/hwsim/test_he.py index f042d7162..d86e2423a 100644 --- a/tests/hwsim/test_he.py +++ b/tests/hwsim/test_he.py @@ -79,7 +79,7 @@ def test_he_params(dev, apdev): def he_supported(): cmd = subprocess.Popen(["iw", "reg", "get"], stdout=subprocess.PIPE) - reg = cmd.stdout.read() + reg = cmd.stdout.read().decode() if "@ 80)" in reg or "@ 160)" in reg: return True return False