]> granicus.if.org Git - python/commitdiff
Make test_support.TestSkipped errors work the same way as ImportErrors:
authorThomas Wouters <thomas@python.org>
Fri, 4 Aug 2000 13:17:51 +0000 (13:17 +0000)
committerThomas Wouters <thomas@python.org>
Fri, 4 Aug 2000 13:17:51 +0000 (13:17 +0000)
mark the test as 'skipped', rather than 'failed'.

Lib/test/regrtest.py

index 69bbf14b1ee6bbd7c370b5967a7d0454053fc330..9b2466fd4e791497145ab53254d3207ee4dea49a 100755 (executable)
@@ -227,7 +227,7 @@ def runtest(test, generate, verbose, testdir = None):
                 cfp.close()
         finally:
             sys.stdout = save_stdout
-    except ImportError, msg:
+    except (ImportError, test_support.TestSkipped), msg:
         return -1
     except KeyboardInterrupt, v:
         raise KeyboardInterrupt, v, sys.exc_info()[2]