From: Masashi Honma Date: Mon, 4 Feb 2019 00:32:52 +0000 (+0200) Subject: tests: Decode upnp_soap_action() response for python3 X-Git-Tag: hostap_2_8~444 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=732b76139a88db62abb002d464a524fa6ca71d36;p=thirdparty%2Fhostap.git tests: Decode upnp_soap_action() response for python3 Signed-off-by: Masashi Honma --- diff --git a/tests/hwsim/test_ap_wps.py b/tests/hwsim/test_ap_wps.py index 8e9aa33c8..0aec63d11 100644 --- a/tests/hwsim/test_ap_wps.py +++ b/tests/hwsim/test_ap_wps.py @@ -2885,7 +2885,7 @@ def test_ap_wps_upnp(dev, apdev): resp = upnp_soap_action(conn, ctrlurl.path, "GetDeviceInfo") if resp.status != 200: raise Exception("Unexpected HTTP response: %d" % resp.status) - dev = resp.read() + dev = resp.read().decode() if "NewDeviceInfo" not in dev: raise Exception("Unexpected GetDeviceInfo response")