From a42ec6611ca84024f39173429cb3afa0ae517c53 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 2 Feb 2019 18:29:11 +0200 Subject: [PATCH] tests: Explicit str/bytes conversion in sigma_dut_venue_url This is needed for python3. Signed-off-by: Jouni Malinen --- tests/hwsim/test_sigma_dut.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/hwsim/test_sigma_dut.py b/tests/hwsim/test_sigma_dut.py index 9375421bf..d4f416ecb 100644 --- a/tests/hwsim/test_sigma_dut.py +++ b/tests/hwsim/test_sigma_dut.py @@ -2527,11 +2527,11 @@ def run_sigma_dut_venue_url(dev, apdev): venue_type = 13 venue_info = struct.pack('BB', venue_group, venue_type) lang1 = "eng" - name1= "Example venue" + name1 = "Example venue" lang2 = "fin" name2 = "Esimerkkipaikka" - venue1 = struct.pack('B', len(lang1 + name1)) + lang1 + name1 - venue2 = struct.pack('B', len(lang2 + name2)) + lang2 + name2 + venue1 = struct.pack('B', len(lang1 + name1)) + lang1.encode() + name1.encode() + venue2 = struct.pack('B', len(lang2 + name2)) + lang2.encode() + name2.encode() venue_name = binascii.hexlify(venue_info + venue1 + venue2) url1 = "http://example.com/venue"