]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Decode upnp_soap_action() response for python3
authorMasashi Honma <masashi.honma@gmail.com>
Mon, 4 Feb 2019 00:32:52 +0000 (02:32 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 4 Feb 2019 10:26:34 +0000 (12:26 +0200)
Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
tests/hwsim/test_ap_wps.py

index 8e9aa33c8eb4f02363f5545223da97eaf8a442b1..0aec63d111bd14c767755c16345c91e55123c475 100644 (file)
@@ -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")