mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
Fix an issue related to the unittest conversion.
This commit is contained in:
parent
fb5b9890fb
commit
cf795b49a9
1 changed files with 6 additions and 0 deletions
|
|
@ -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__":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue