summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_ossaudiodev.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-08-24 18:46:27 (GMT)
committerGeorg Brandl <georg@python.org>2007-08-24 18:46:27 (GMT)
commitfe3b4b9507368de10a0b16aada418b08e0108c3b (patch)
tree23fb8f9f6d3ad45cffc36af3592b9d0bf1cfed8f /Lib/test/test_ossaudiodev.py
parente7445de2b1c72fe8fa7310b629e0d2982eb46b65 (diff)
downloadcpython-fe3b4b9507368de10a0b16aada418b08e0108c3b.zip
cpython-fe3b4b9507368de10a0b16aada418b08e0108c3b.tar.gz
cpython-fe3b4b9507368de10a0b16aada418b08e0108c3b.tar.bz2
Convert test_linuxaudiodev to unittest. Fix a wrong finally clause in test_ossaudiodev.
Diffstat (limited to 'Lib/test/test_ossaudiodev.py')
-rw-r--r--Lib/test/test_ossaudiodev.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_ossaudiodev.py b/Lib/test/test_ossaudiodev.py
index 3fb5d6d..5a6c893 100644
--- a/Lib/test/test_ossaudiodev.py
+++ b/Lib/test/test_ossaudiodev.py
@@ -166,8 +166,7 @@ def test_main():
if msg[0] in (errno.EACCES, errno.ENOENT, errno.ENODEV, errno.EBUSY):
raise TestSkipped(msg)
raise
- finally:
- dsp.close()
+ dsp.close()
test_support.run_unittest(__name__)
if __name__ == "__main__":