From: Anthony Baxter Date: Tue, 23 Apr 2002 02:20:46 +0000 (+0000) Subject: don't fail if the audio device is busy, just skip. X-Git-Tag: v2.3c1~5828 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4ce6b351cce6e202568ec499fc0d717d65c0c1d7;p=thirdparty%2FPython%2Fcpython.git don't fail if the audio device is busy, just skip. SF patch 545486 --- diff --git a/Lib/test/test_linuxaudiodev.py b/Lib/test/test_linuxaudiodev.py index 7924a24e3207..cc44d8b50808 100644 --- a/Lib/test/test_linuxaudiodev.py +++ b/Lib/test/test_linuxaudiodev.py @@ -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