From: Benjamin Peterson Date: Sat, 10 Jan 2009 22:42:10 +0000 (+0000) Subject: make tests fail if they can't be imported X-Git-Tag: v2.7a1~2330 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=164b0455b671989633050651433d7c419674a182;p=python make tests fail if they can't be imported --- diff --git a/Lib/ctypes/test/__init__.py b/Lib/ctypes/test/__init__.py index 70d647ba5e..52230928ba 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