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

collin.winter python-checkins at python.org
Wed Apr 25 23:50:29 CEST 2007


Author: collin.winter
Date: Wed Apr 25 23:50:25 2007
New Revision: 54974

Modified:
   python/trunk/Lib/test/test_ossaudiodev.py
Log:
Fix an issue related to the unittest conversion.

Modified: python/trunk/Lib/test/test_ossaudiodev.py
==============================================================================
--- python/trunk/Lib/test/test_ossaudiodev.py	(original)
+++ python/trunk/Lib/test/test_ossaudiodev.py	Wed Apr 25 23:50:25 2007
@@ -162,6 +162,12 @@
 
 
 def test_main():
+    try:
+        dsp = ossaudiodev.open('w')
+    except IOError, msg:
+        if msg[0] in (errno.EACCES, errno.ENOENT, errno.ENODEV, errno.EBUSY):
+            raise TestSkipped(msg)
+        raise
     test_support.run_unittest(__name__)
 
 if __name__ == "__main__":


More information about the Python-checkins mailing list