commit | ff9b96338700ff0952e960d3e6e1d3258582579b | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Fri Aug 24 19:22:34 2007 +0000 |
committer | Georg Brandl <georg@python.org> | Fri Aug 24 19:22:34 2007 +0000 |
tree | bdbc65fa7c71d5bd52eef9bda6b0a09383a5e2e0 | |
parent | 0f5e87a2661c57f16ca3ff951c239da32e73fc27 [diff] [blame] |
Catch the correct errors.
diff --git a/Lib/test/test_linuxaudiodev.py b/Lib/test/test_linuxaudiodev.py index d884cf8..5d1d1ce 100644 --- a/Lib/test/test_linuxaudiodev.py +++ b/Lib/test/test_linuxaudiodev.py
@@ -91,7 +91,7 @@ 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