mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +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:
|
try:
|
||||||
a = linuxaudiodev.open('w')
|
a = linuxaudiodev.open('w')
|
||||||
except linuxaudiodev.error, msg:
|
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 TestSkipped, msg
|
||||||
raise TestFailed, msg
|
raise TestFailed, msg
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue