mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
fix incorrect auto-translation of TestSkipped -> unittest.SkipTest
This commit is contained in:
parent
ad57d97596
commit
bec087f29d
31 changed files with 75 additions and 75 deletions
|
|
@ -1,7 +1,7 @@
|
|||
from test import test_support
|
||||
test_support.requires('audio')
|
||||
|
||||
from test.test_support import findfile, SkipTest, run_unittest
|
||||
from test.test_support import findfile, 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 SkipTest(msg)
|
||||
raise unittest.SkipTest(msg)
|
||||
raise
|
||||
dsp.close()
|
||||
run_unittest(LinuxAudioDevTests)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue