From 164b0455b671989633050651433d7c419674a182 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sat, 10 Jan 2009 22:42:10 +0000 Subject: [PATCH] make tests fail if they can't be imported --- Lib/ctypes/test/__init__.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/Lib/ctypes/test/__init__.py b/Lib/ctypes/test/__init__.py index 70d647ba5e2..52230928ba5 100644 --- a/Lib/ctypes/test/__init__.py +++ b/Lib/ctypes/test/__init__.py @@ -67,9 +67,6 @@ def get_tests(package, mask, verbosity, exclude=()): if verbosity > 1: print >> sys.stderr, "Skipped %s: %s" % (modname, detail) continue - except Exception, detail: - print >> sys.stderr, "Warning: could not import %s: %s" % (modname, detail) - continue for name in dir(mod): if name.startswith("_"): continue