tests: Decode upnp_soap_action() response for python3

Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
This commit is contained in:
Masashi Honma 2019-02-04 02:32:52 +02:00 committed by Jouni Malinen
parent 69f58282bc
commit 732b76139a

View 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")