aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hwsim/test_hostapd_oom.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/hwsim/test_hostapd_oom.py')
-rw-r--r--tests/hwsim/test_hostapd_oom.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/hwsim/test_hostapd_oom.py b/tests/hwsim/test_hostapd_oom.py
index ed64fd1..f0010e4 100644
--- a/tests/hwsim/test_hostapd_oom.py
+++ b/tests/hwsim/test_hostapd_oom.py
@@ -35,7 +35,7 @@ def hostapd_oom_loop(apdev, params, start_func="main"):
count += 1
if count == 5:
break
- except Exception, e:
+ except Exception as e:
logger.info("Iteration %d - %s" % (i, str(e)))
@remote_compatible
@@ -57,7 +57,7 @@ def test_hostapd_oom_wpa2_psk(dev, apdev):
try:
hostapd.add_ap(apdev[1], params, timeout=2.5)
raise Exception("Unexpected add_ap() success during OOM")
- except Exception, e:
+ except Exception as e:
if "Failed to enable hostapd" in str(e):
pass
else: