aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hwsim/test_ap_vlan.py
diff options
context:
space:
mode:
authorMasashi Honma <masashi.honma@gmail.com>2019-01-24 07:45:41 (GMT)
committerJouni Malinen <j@w1.fi>2019-01-26 10:11:35 (GMT)
commitbab493b90486b61c8feb2bc56d1769a08a75ab2a (patch)
tree559b603b78f56d8aa9d9ac6aa8d41c76178ff62f /tests/hwsim/test_ap_vlan.py
parent0dab477335d9ea8d71bdb631aab7483542ed1bd0 (diff)
downloadhostap-bab493b90486b61c8feb2bc56d1769a08a75ab2a.zip
hostap-bab493b90486b61c8feb2bc56d1769a08a75ab2a.tar.gz
hostap-bab493b90486b61c8feb2bc56d1769a08a75ab2a.tar.bz2
tests: Use python3 compatible "except" statement
This patch is made by using 2to3 command. $ find . -name *.py | xargs 2to3 -f except -w -n Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
Diffstat (limited to 'tests/hwsim/test_ap_vlan.py')
-rw-r--r--tests/hwsim/test_ap_vlan.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/hwsim/test_ap_vlan.py b/tests/hwsim/test_ap_vlan.py
index 62e1d32..bde4338 100644
--- a/tests/hwsim/test_ap_vlan.py
+++ b/tests/hwsim/test_ap_vlan.py
@@ -294,7 +294,7 @@ def generic_ap_vlan_wpa2_radius_id_change(dev, apdev, tagged):
ifname2="brvlan1")
else:
hwsim_utils.test_connectivity_iface(dev[0], hapd, "brvlan1")
- except Exception, e:
+ except Exception as e:
# It is possible for new bridge setup to not be ready immediately, so
# try again to avoid reporting issues related to that.
logger.info("First VLAN-ID 1 data test failed - try again")