From: Anthony Baxter Date: Tue, 23 Apr 2002 02:21:00 +0000 (+0000) Subject: backport: X-Git-Tag: v2.2.2b1~408 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=596483ab137cc4377f7ca2bcbe3e3642b4c9afa4;p=thirdparty%2FPython%2Fcpython.git backport: 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