Kaydet (Commit) 1b2f62d1 authored tarafından Neal Norwitz's avatar Neal Norwitz

Catch IOError for when the device file doesn't exist or the user doesn't have

permission to write to the device.
üst 15d4e56c
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment