mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
If the audio file does not exist, the test should be skipped. Will backport.
This commit is contained in:
parent
f2d66fe1ec
commit
c6d1f9100f
2 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@ def play_sound_file(path):
|
|||
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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue