From 44adf014ffe2e65fe76334aeca052de0f8cbb2b8 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 28 Dec 2019 19:52:17 +0200 Subject: [PATCH] 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 --- tests/hwsim/test_he.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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