aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hwsim/test_wmediumd.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/hwsim/test_wmediumd.py')
-rw-r--r--tests/hwsim/test_wmediumd.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/hwsim/test_wmediumd.py b/tests/hwsim/test_wmediumd.py
index d07d5ac..26a7521 100644
--- a/tests/hwsim/test_wmediumd.py
+++ b/tests/hwsim/test_wmediumd.py
@@ -70,7 +70,7 @@ def get_wmediumd_version():
try:
verstr = subprocess.check_output(['wmediumd', '-V'])
- except OSError, e:
+ except OSError as e:
if e.errno == errno.ENOENT:
raise HwsimSkip('wmediumd not available')
raise
@@ -101,7 +101,7 @@ def start_wmediumd(fn, params):
p = subprocess.Popen(['wmediumd', '-c', fn],
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
- except OSError, e:
+ except OSError as e:
if e.errno == errno.ENOENT:
raise HwsimSkip('wmediumd not available')
raise