mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Raise 'TestSkipped' (from the test_support) module rather than 'ImportError'
to signify a test that should be marked as 'skipped' rather than 'failed'. Also 'document' it, in README.
This commit is contained in:
parent
040c17fe38
commit
b9fa0a843e
10 changed files with 20 additions and 19 deletions
|
@ -4,7 +4,7 @@
|
|||
"""
|
||||
|
||||
import dl
|
||||
from test_support import verbose
|
||||
from test_support import verbose,TestSkipped
|
||||
|
||||
sharedlibs = [
|
||||
('/usr/lib/libc.so', 'getpid'),
|
||||
|
@ -29,4 +29,4 @@ for s, func in sharedlibs:
|
|||
print 'worked!'
|
||||
break
|
||||
else:
|
||||
raise ImportError, 'Could not open any shared libraries'
|
||||
raise TestSkipped, 'Could not open any shared libraries'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue