mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +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
|
|
@ -12,7 +12,8 @@ functionality. The mechanics of how the test system operates are fairly
|
|||
straightforward. When a test case is run, the output is compared with the
|
||||
expected output that is stored in .../Lib/test/output. If the test runs to
|
||||
completion and the actual and expected outputs match, the test succeeds, if
|
||||
not, it fails. If an ImportError is raised, the test is not run.
|
||||
not, it fails. If an ImportError or test_support.TestSkipped error is
|
||||
raised, the test is not run.
|
||||
|
||||
You will be writing unit tests (isolated tests of functions and objects
|
||||
defined by the module) using white box techniques. Unlike black box
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue