[Python-checkins] r57522 - python/trunk/Lib/test/test_ossaudiodev.py

neal.norwitz python-checkins at python.org
Mon Aug 27 00:16:24 CEST 2007


Author: neal.norwitz
Date: Mon Aug 27 00:16:23 2007
New Revision: 57522

Modified:
   python/trunk/Lib/test/test_ossaudiodev.py
Log:
Catch IOError for when the device file doesn't exist or the user doesn't have
permission to write to the device.


Modified: python/trunk/Lib/test/test_ossaudiodev.py
==============================================================================
--- python/trunk/Lib/test/test_ossaudiodev.py	(original)
+++ python/trunk/Lib/test/test_ossaudiodev.py	Mon Aug 27 00:16:23 2007
@@ -162,7 +162,7 @@
 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


More information about the Python-checkins mailing list