diff Lib/test/test_string.py @ 13858:99f0413ef795 legacy-trunk

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.
author Thomas Wouters <thomas@python.org>
date Fri, 04 Aug 2000 13:34:43 +0000
parents 4f110441db39
children 07f24261c6e6
line wrap: on
line diff
--- a/Lib/test/test_string.py	Fri Aug 04 13:26:03 2000 +0000
+++ b/Lib/test/test_string.py	Fri Aug 04 13:34:43 2000 +0000
@@ -1,4 +1,4 @@
-from test_support import verbose
+from test_support import verbose, TestSkipped
 import string_tests
 import string, sys
 
@@ -6,7 +6,7 @@
 try:
     ''.join
 except AttributeError:
-    raise ImportError
+    raise TestSkipped
 
 def test(name, input, output, *args):
     if verbose: