summaryrefslogtreecommitdiff
path: root/Lib/test/test_linuxaudiodev.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-08-24 19:22:34 +0000
committerGeorg Brandl <georg@python.org>2007-08-24 19:22:34 +0000
commit12abc313b6d09172f75d90e130a5b53dd281d32c (patch)
tree525e7d6dfd5500460ef461f11eab29496ed05912 /Lib/test/test_linuxaudiodev.py
parentb1eb1d97906e44c49962b13e4c30ecaed80feac8 (diff)
downloadcpython-12abc313b6d09172f75d90e130a5b53dd281d32c.tar.gz
Catch the correct errors.
Diffstat (limited to 'Lib/test/test_linuxaudiodev.py')
-rw-r--r--Lib/test/test_linuxaudiodev.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_linuxaudiodev.py b/Lib/test/test_linuxaudiodev.py
index d884cf8802..5d1d1ce137 100644
--- a/Lib/test/test_linuxaudiodev.py
+++ b/Lib/test/test_linuxaudiodev.py
@@ -91,7 +91,7 @@ class LinuxAudioDevTests(unittest.TestCase):
def test_main():
try:
dsp = linuxaudiodev.open('w')
- except IOError, msg:
+ except linuxaudiodev.error, msg:
if msg.args[0] in (errno.EACCES, errno.ENOENT, errno.ENODEV, errno.EBUSY):
raise TestSkipped(msg)
raise