mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
Convert test_linuxaudiodev to unittest. Fix a wrong finally clause in test_ossaudiodev.
This commit is contained in:
parent
e7445de2b1
commit
fe3b4b9507
3 changed files with 83 additions and 81 deletions
|
@ -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__":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue