mirror of
https://github.com/python/cpython.git
synced 2026-01-06 23:42:34 +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
|
|
@ -9,11 +9,12 @@
|
|||
"""
|
||||
|
||||
import os, sys, time, thread
|
||||
from test_support import TestSkipped
|
||||
|
||||
try:
|
||||
os.fork
|
||||
except AttributeError:
|
||||
raise ImportError, "os.fork not defined -- skipping test_fork1"
|
||||
raise TestSkipped, "os.fork not defined -- skipping test_fork1"
|
||||
|
||||
LONGSLEEP = 2
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue