mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
don't fail if the audio device is busy, just skip.
SF patch 545486
This commit is contained in:
parent
8388895fe4
commit
4ce6b351cc
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue