aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hwsim/test_ocv.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/hwsim/test_ocv.py')
-rw-r--r--tests/hwsim/test_ocv.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/hwsim/test_ocv.py b/tests/hwsim/test_ocv.py
index b76b6cf..49fb8f0 100644
--- a/tests/hwsim/test_ocv.py
+++ b/tests/hwsim/test_ocv.py
@@ -35,7 +35,7 @@ def ocv_setup_ap(apdev, params):
params.update(hostapd.wpa2_params(ssid=ssid, passphrase=passphrase))
try:
hapd = hostapd.add_ap(apdev, params)
- except Exception, e:
+ except Exception as e:
if "Failed to set hostapd parameter ocv" in str(e):
raise HwsimSkip("OCV not supported")
raise
@@ -371,7 +371,7 @@ class APConnection:
params["ocv"] = ap_ocv
try:
self.hapd = hostapd.add_ap(apdev, params)
- except Exception, e:
+ except Exception as e:
if "Failed to set hostapd parameter ocv" in str(e):
raise HwsimSkip("OCV not supported")
raise
@@ -598,7 +598,7 @@ def test_wpa2_ocv_ap_retransmit_msg3(dev, apdev):
params['wpa_disable_eapol_key_retries'] = "1"
try:
hapd = 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
@@ -731,7 +731,7 @@ class STAConnection:
try:
self.hapd = hostapd.add_ap(apdev, params)
- except Exception, e:
+ except Exception as e:
if "Failed to set hostapd parameter ocv" in str(e):
raise HwsimSkip("OCV not supported")
raise