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/test_nis.py | |
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/test_nis.py')
-rw-r--r-- | Lib/test/test_nis.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_nis.py b/Lib/test/test_nis.py index b73faf9..f711de0 100644 --- a/Lib/test/test_nis.py +++ b/Lib/test/test_nis.py @@ -1,4 +1,4 @@ -from test_support import verbose, TestFailed +from test_support import verbose, TestFailed, TestSkipped import nis print 'nis.maps()' @@ -9,7 +9,7 @@ except nis.error, msg: if verbose: raise TestFailed, msg # only do this if running under the regression suite - raise ImportError, msg + raise TestSkipped, msg done = 0 for nismap in maps: |