aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hwsim/test_ap_ciphers.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/hwsim/test_ap_ciphers.py')
-rw-r--r--tests/hwsim/test_ap_ciphers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/hwsim/test_ap_ciphers.py b/tests/hwsim/test_ap_ciphers.py
index abed26f..8e5b2d6 100644
--- a/tests/hwsim/test_ap_ciphers.py
+++ b/tests/hwsim/test_ap_ciphers.py
@@ -485,7 +485,7 @@ def get_rx_spec(phy, gtk=False):
continue
with open(keydir + "/rx_spec") as f:
return f.read()
- except OSError, e:
+ except OSError as e:
raise HwsimSkip("debugfs not supported in mac80211")
return None
@@ -501,7 +501,7 @@ def get_tk_replay_counter(phy, gtk=False):
continue
with open(keydir + "/replays") as f:
return int(f.read())
- except OSError, e:
+ except OSError as e:
raise HwsimSkip("debugfs not supported in mac80211")
return None