diff options
| author | Guido van Rossum <guido@python.org> | 2000-09-01 19:25:51 (GMT) |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 2000-09-01 19:25:51 (GMT) |
| commit | 8d691c842289cf4453f282637765f07113a7cc17 (patch) | |
| tree | 3a7819d53d7578cf728d3bcfecba7daebb6981db /Lib/dos-8x3/test_sup.py | |
| parent | 29201d490511b2af863e07fdf5cb247fc9117c2f (diff) | |
| download | cpython-8d691c842289cf4453f282637765f07113a7cc17.zip cpython-8d691c842289cf4453f282637765f07113a7cc17.tar.gz cpython-8d691c842289cf4453f282637765f07113a7cc17.tar.bz2 | |
The usual
Diffstat (limited to 'Lib/dos-8x3/test_sup.py')
| -rwxr-xr-x | Lib/dos-8x3/test_sup.py | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/Lib/dos-8x3/test_sup.py b/Lib/dos-8x3/test_sup.py index 3839c79..99bacda 100755 --- a/Lib/dos-8x3/test_sup.py +++ b/Lib/dos-8x3/test_sup.py @@ -1,8 +1,26 @@ -# Python test set -- supporting definitions. +"""Supporting definitions for the Python regression test.""" + + +class Error(Exception): + """Base class for regression test exceptions.""" + +class TestFailed(Error): + """Test failed.""" + +class TestSkipped(Error): + """Test skipped. + + This can be raised to indicate that a test was deliberatly + skipped, but not because a feature wasn't available. For + example, if some resource can't be used, such as the network + appears to be unavailable, this should be raised instead of + TestFailed. + + """ -TestFailed = 'test_support -- test failed' # Exception verbose = 1 # Flag set to 0 by regrtest.py +use_large_resources = 1 # Flag set to 0 by regrtest.py def unload(name): import sys |
