From: Thomas Wouters Date: Thu, 19 Jul 2001 09:44:37 +0000 (+0000) Subject: Backport Guido's checkin 1.3: X-Git-Tag: v2.1.1~10 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=041a51b596c1f94c90029afb3bf2b8074fdefea3;p=thirdparty%2FPython%2Fcpython.git Backport Guido's checkin 1.3: 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