From 096001505617555992ac3a06450152f4b0e7a36c Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 13 Jul 2001 17:27:57 +0000 Subject: [PATCH] Should raise TestSkipped, not ImportError, when deciding to skip the test. --- Lib/test/test_socketserver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_socketserver.py b/Lib/test/test_socketserver.py index b2d96610962..398b077c8d1 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