]> granicus.if.org Git - python/commitdiff
Remove the regrtest check that turns any ImportError into a skipped test.
authorR. David Murray <rdmurray@bitdance.com>
Tue, 31 Mar 2009 19:49:15 +0000 (19:49 +0000)
committerR. David Murray <rdmurray@bitdance.com>
Tue, 31 Mar 2009 19:49:15 +0000 (19:49 +0000)
Hopefully all modules whose imports legitimately result in a skipped
test have been properly wrapped by the previous commits.

Lib/test/regrtest.py

index 3fa4838a27a41f779cc5c7716e69c5f4b96edc1c..29f84fa3dd21da244f1835be26a5744d69e76924 100755 (executable)
@@ -580,7 +580,7 @@ def runtest_inner(test, verbose, quiet, test_times,
             print test, "skipped --", msg
             sys.stdout.flush()
         return -2
-    except (ImportError, unittest.SkipTest), msg:
+    except unittest.SkipTest, msg:
         if not quiet:
             print test, "skipped --", msg
             sys.stdout.flush()