summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_ossaudiodev.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-01-05 07:16:13 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-01-05 07:16:13 (GMT)
commitc6d1f9100f8cb80dec5b1a454d3bdb54f6f76f98 (patch)
tree33e04b3b8bc04f80aff0147232029f04204fb3c5 /Lib/test/test_ossaudiodev.py
parentf2d66fe1ec51ac618068f7f035eab7f4053aaef1 (diff)
downloadcpython-c6d1f9100f8cb80dec5b1a454d3bdb54f6f76f98.zip
cpython-c6d1f9100f8cb80dec5b1a454d3bdb54f6f76f98.tar.gz
cpython-c6d1f9100f8cb80dec5b1a454d3bdb54f6f76f98.tar.bz2
If the audio file does not exist, the test should be skipped. Will backport.
Diffstat (limited to 'Lib/test/test_ossaudiodev.py')
-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 f668eb4..8810516 100644
--- a/Lib/test/test_ossaudiodev.py
+++ b/Lib/test/test_ossaudiodev.py
@@ -45,7 +45,7 @@ def play_sound_file(data, rate, ssize, nchannels):
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