]> granicus.if.org Git - python/commitdiff
Should raise TestSkipped, not ImportError, when deciding to skip the
authorGuido van Rossum <guido@python.org>
Fri, 13 Jul 2001 17:27:57 +0000 (17:27 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 13 Jul 2001 17:27:57 +0000 (17:27 +0000)
test.

Lib/test/test_socketserver.py

index b2d9661096235736161a2771aa68349c7e0d4bfa..398b077c8d190ea80f4e5bc3300a7aad77f5dca2 100644 (file)
@@ -3,9 +3,9 @@
 # XXX This must be run manually -- somehow the I/O redirection of the
 # regression test breaks the test.
 
-from test_support import verbose, verify, TESTFN
+from test_support import verbose, verify, TESTFN, TestSkipped
 if not verbose:
-    raise ImportError, "test_socketserver can only be run manually"
+    raise TestSkipped, "test_socketserver can only be run manually"
 
 from SocketServer import *
 import socket