From 732b76139a88db62abb002d464a524fa6ca71d36 Mon Sep 17 00:00:00 2001 From: Masashi Honma Date: Mon, 4 Feb 2019 02:32:52 +0200 Subject: [PATCH] tests: Decode upnp_soap_action() response for python3 Signed-off-by: Masashi Honma --- tests/hwsim/test_ap_wps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")