From: Collin Winter Date: Wed, 25 Apr 2007 21:50:25 +0000 (+0000) Subject: Fix an issue related to the unittest conversion. X-Git-Tag: v2.6a1~1802 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cf795b49a9c9e2b672de4842110b86cb55297d0b;p=python Fix an issue related to the unittest conversion. --- diff --git a/Lib/test/test_ossaudiodev.py b/Lib/test/test_ossaudiodev.py index f25e23dcc7..92104a04fb 100644 --- a/Lib/test/test_ossaudiodev.py +++ b/Lib/test/test_ossaudiodev.py @@ -162,6 +162,12 @@ class OSSAudioDevTests(unittest.TestCase): def test_main(): + try: + dsp = ossaudiodev.open('w') + except IOError, msg: + if msg[0] in (errno.EACCES, errno.ENOENT, errno.ENODEV, errno.EBUSY): + raise TestSkipped(msg) + raise test_support.run_unittest(__name__) if __name__ == "__main__":