From 12abc313b6d09172f75d90e130a5b53dd281d32c Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Fri, 24 Aug 2007 19:22:34 +0000 Subject: Catch the correct errors. --- Lib/test/test_linuxaudiodev.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/test/test_linuxaudiodev.py') 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 -- cgit v1.2.1