Convert test_linuxaudiodev to unittest. Fix a wrong finally clause in test_ossaudiodev.

This commit is contained in:
Georg Brandl 2007-08-24 18:46:27 +00:00
parent e7445de2b1
commit fe3b4b9507
3 changed files with 83 additions and 81 deletions

View file

@ -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__":