mirror of
https://github.com/python/cpython.git
synced 2025-07-29 14:15:07 +00:00
remove test_support.TestSkipped and just use unittest.SkipTest
This commit is contained in:
parent
21f6aac633
commit
888a39b54c
44 changed files with 99 additions and 108 deletions
|
@ -1,7 +1,7 @@
|
|||
from test import test_support
|
||||
test_support.requires('audio')
|
||||
|
||||
from test.test_support import findfile, TestSkipped, run_unittest
|
||||
from test.test_support import findfile, SkipTest, run_unittest
|
||||
|
||||
import errno
|
||||
linuxaudiodev = test_support.import_module('linuxaudiodev', deprecated=True)
|
||||
|
@ -89,7 +89,7 @@ def test_main():
|
|||
dsp = linuxaudiodev.open('w')
|
||||
except linuxaudiodev.error, msg:
|
||||
if msg.args[0] in (errno.EACCES, errno.ENOENT, errno.ENODEV, errno.EBUSY):
|
||||
raise TestSkipped(msg)
|
||||
raise SkipTest(msg)
|
||||
raise
|
||||
dsp.close()
|
||||
run_unittest(LinuxAudioDevTests)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue