diff options
author | Georg Brandl <georg@python.org> | 2007-08-24 19:22:34 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-08-24 19:22:34 +0000 |
commit | 12abc313b6d09172f75d90e130a5b53dd281d32c (patch) | |
tree | 525e7d6dfd5500460ef461f11eab29496ed05912 /Lib/test/test_linuxaudiodev.py | |
parent | b1eb1d97906e44c49962b13e4c30ecaed80feac8 (diff) | |
download | cpython-12abc313b6d09172f75d90e130a5b53dd281d32c.tar.gz |
Catch the correct errors.
Diffstat (limited to 'Lib/test/test_linuxaudiodev.py')
-rw-r--r-- | Lib/test/test_linuxaudiodev.py | 2 |
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 |