summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2007-08-26 22:16:23 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2007-08-26 22:16:23 (GMT)
commit1b2f62d139257643b844eae6e951309d5aae472f (patch)
tree41e411a766592678fe478491b222c2a85ef4eccd /Lib
parent15d4e56c40896d0544cf5df618d651199be17974 (diff)
downloadcpython-1b2f62d139257643b844eae6e951309d5aae472f.zip
cpython-1b2f62d139257643b844eae6e951309d5aae472f.tar.gz
cpython-1b2f62d139257643b844eae6e951309d5aae472f.tar.bz2
Catch IOError for when the device file doesn't exist or the user doesn't have
permission to write to the device.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_ossaudiodev.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_ossaudiodev.py b/Lib/test/test_ossaudiodev.py
index b07cb56..83cc344 100644
--- a/Lib/test/test_ossaudiodev.py
+++ b/Lib/test/test_ossaudiodev.py
@@ -162,7 +162,7 @@ class OSSAudioDevTests(unittest.TestCase):
def test_main():
try:
dsp = ossaudiodev.open('w')
- except ossaudiodev.error, msg:
+ except (ossaudiodev.error, IOError), msg:
if msg[0] in (errno.EACCES, errno.ENOENT, errno.ENODEV, errno.EBUSY):
raise TestSkipped(msg)
raise