diff options
author | Thomas Wouters <thomas@python.org> | 2000-08-04 13:34:43 (GMT) |
---|---|---|
committer | Thomas Wouters <thomas@python.org> | 2000-08-04 13:34:43 (GMT) |
commit | b9fa0a843e239bcdaecbe16aaa508e9e25b5afce (patch) | |
tree | bc3650354409d9aca1dc994ebc293c2a3c99a498 /Lib/test/README | |
parent | 040c17fe38f17575d57ef2aecd6d9955d24cb0c6 (diff) | |
download | cpython-b9fa0a843e239bcdaecbe16aaa508e9e25b5afce.zip cpython-b9fa0a843e239bcdaecbe16aaa508e9e25b5afce.tar.gz cpython-b9fa0a843e239bcdaecbe16aaa508e9e25b5afce.tar.bz2 |
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.
Diffstat (limited to 'Lib/test/README')
-rw-r--r-- | Lib/test/README | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/README b/Lib/test/README index c969fcc..94b1964 100644 --- a/Lib/test/README +++ b/Lib/test/README @@ -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 |