[Python-checkins] r41921 - python/branches/release24-maint/Lib/test/test_linuxaudiodev.py python/branches/release24-maint/Lib/test/test_ossaudiodev.py
neal.norwitz
python-checkins at python.org
Thu Jan 5 08:17:39 CET 2006
Author: neal.norwitz
Date: Thu Jan 5 08:17:35 2006
New Revision: 41921
Modified:
python/branches/release24-maint/Lib/test/test_linuxaudiodev.py
python/branches/release24-maint/Lib/test/test_ossaudiodev.py
Log:
Backport: If the audio file does not exist, the test should be skipped.
Modified: python/branches/release24-maint/Lib/test/test_linuxaudiodev.py
==============================================================================
--- python/branches/release24-maint/Lib/test/test_linuxaudiodev.py (original)
+++ python/branches/release24-maint/Lib/test/test_linuxaudiodev.py Thu Jan 5 08:17:35 2006
@@ -28,7 +28,7 @@
try:
a = linuxaudiodev.open('w')
except linuxaudiodev.error, msg:
- if msg[0] in (errno.EACCES, errno.ENODEV, errno.EBUSY):
+ if msg[0] in (errno.EACCES, errno.ENOENT, errno.ENODEV, errno.EBUSY):
raise TestSkipped, msg
raise TestFailed, msg
Modified: python/branches/release24-maint/Lib/test/test_ossaudiodev.py
==============================================================================
--- python/branches/release24-maint/Lib/test/test_ossaudiodev.py (original)
+++ python/branches/release24-maint/Lib/test/test_ossaudiodev.py Thu Jan 5 08:17:35 2006
@@ -45,7 +45,7 @@
try:
dsp = ossaudiodev.open('w')
except IOError, msg:
- if msg[0] in (errno.EACCES, errno.ENODEV, errno.EBUSY):
+ if msg[0] in (errno.EACCES, errno.ENOENT, errno.ENODEV, errno.EBUSY):
raise TestSkipped, msg
raise TestFailed, msg
More information about the Python-checkins
mailing list