aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hwsim/test_ap_ft.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/hwsim/test_ap_ft.py')
-rw-r--r--tests/hwsim/test_ap_ft.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/hwsim/test_ap_ft.py b/tests/hwsim/test_ap_ft.py
index 6ab4f8c..2de21d4 100644
--- a/tests/hwsim/test_ap_ft.py
+++ b/tests/hwsim/test_ap_ft.py
@@ -446,7 +446,7 @@ def test_ap_ft_ocv(dev, apdev):
params["ocv"] = "1"
try:
hapd0 = hostapd.add_ap(apdev[0], params)
- except Exception, e:
+ except Exception as e:
if "Failed to set hostapd parameter ocv" in str(e):
raise HwsimSkip("OCV not supported")
raise
@@ -582,7 +582,7 @@ def test_ap_ft_over_ds_ocv(dev, apdev):
params["ocv"] = "1"
try:
hapd0 = hostapd.add_ap(apdev[0], params)
- except Exception, e:
+ except Exception as e:
if "Failed to set hostapd parameter ocv" in str(e):
raise HwsimSkip("OCV not supported")
raise