aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hwsim/test_ap_tdls.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/hwsim/test_ap_tdls.py')
-rw-r--r--tests/hwsim/test_ap_tdls.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/hwsim/test_ap_tdls.py b/tests/hwsim/test_ap_tdls.py
index 2d1fc2c..bba2bac 100644
--- a/tests/hwsim/test_ap_tdls.py
+++ b/tests/hwsim/test_ap_tdls.py
@@ -428,7 +428,7 @@ def test_ap_open_tdls_vht80(dev, apdev):
res = cmd.stdout.read()
cmd.stdout.close()
logger.info("Station dump on dev[%d]:\n%s" % (i, res))
- except Exception, e:
+ except Exception as e:
if isinstance(e, Exception) and str(e) == "AP startup failed":
if not vht_supported():
raise HwsimSkip("80/160 MHz channel not supported in regulatory information")
@@ -472,7 +472,7 @@ def test_ap_open_tdls_vht80plus80(dev, apdev):
res = cmd.stdout.read()
cmd.stdout.close()
logger.info("Station dump on dev[%d]:\n%s" % (i, res))
- except Exception, e:
+ except Exception as e:
if isinstance(e, Exception) and str(e) == "AP startup failed":
if not vht_supported():
raise HwsimSkip("80/160 MHz channel not supported in regulatory information")
@@ -516,7 +516,7 @@ def test_ap_open_tdls_vht160(dev, apdev):
res = cmd.stdout.read()
cmd.stdout.close()
logger.info("Station dump on dev[%d]:\n%s" % (i, res))
- except Exception, e:
+ except Exception as e:
if isinstance(e, Exception) and str(e) == "AP startup failed":
if not vht_supported():
raise HwsimSkip("80/160 MHz channel not supported in regulatory information")