don't fail if the audio device is busy, just skip.

SF patch 545486
This commit is contained in:
Anthony Baxter 2002-04-23 02:20:46 +00:00
parent 8388895fe4
commit 4ce6b351cc

View file

@ -25,7 +25,7 @@ def play_sound_file(path):
try:
a = linuxaudiodev.open('w')
except linuxaudiodev.error, msg:
if msg[0] in (errno.EACCES, errno.ENODEV):
if msg[0] in (errno.EACCES, errno.ENODEV, errno.EBUSY):
raise TestSkipped, msg
raise TestFailed, msg