summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorCollin Winter <collinw@gmail.com>2007-04-25 21:50:25 (GMT)
committerCollin Winter <collinw@gmail.com>2007-04-25 21:50:25 (GMT)
commitcf795b49a9c9e2b672de4842110b86cb55297d0b (patch)
treebc2ff7ddadab1a87ed06a60145196d2949f8e39a /Lib
parentfb5b9890fb65328952d0d30c6fcc6b03e6a99988 (diff)
downloadcpython-cf795b49a9c9e2b672de4842110b86cb55297d0b.zip
cpython-cf795b49a9c9e2b672de4842110b86cb55297d0b.tar.gz
cpython-cf795b49a9c9e2b672de4842110b86cb55297d0b.tar.bz2
Fix an issue related to the unittest conversion.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_ossaudiodev.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_ossaudiodev.py b/Lib/test/test_ossaudiodev.py
index f25e23d..92104a0 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__":