From: Guido van Rossum Date: Fri, 13 Jul 2001 17:27:57 +0000 (+0000) Subject: Should raise TestSkipped, not ImportError, when deciding to skip the X-Git-Tag: v2.2a3~1216 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=096001505617555992ac3a06450152f4b0e7a36c;p=thirdparty%2FPython%2Fcpython.git Should raise TestSkipped, not ImportError, when deciding to skip the test. --- diff --git a/Lib/test/test_socketserver.py b/Lib/test/test_socketserver.py index b2d966109623..398b077c8d19 100644 --- a/Lib/test/test_socketserver.py +++ b/Lib/test/test_socketserver.py @@ -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