summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_gl.py
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2000-08-04 13:34:43 (GMT)
committerThomas Wouters <thomas@python.org>2000-08-04 13:34:43 (GMT)
commitb9fa0a843e239bcdaecbe16aaa508e9e25b5afce (patch)
treebc3650354409d9aca1dc994ebc293c2a3c99a498 /Lib/test/test_gl.py
parent040c17fe38f17575d57ef2aecd6d9955d24cb0c6 (diff)
downloadcpython-b9fa0a843e239bcdaecbe16aaa508e9e25b5afce.zip
cpython-b9fa0a843e239bcdaecbe16aaa508e9e25b5afce.tar.gz
cpython-b9fa0a843e239bcdaecbe16aaa508e9e25b5afce.tar.bz2
Raise 'TestSkipped' (from the test_support) module rather than 'ImportError'
to signify a test that should be marked as 'skipped' rather than 'failed'. Also 'document' it, in README.
Diffstat (limited to 'Lib/test/test_gl.py')
-rwxr-xr-xLib/test/test_gl.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/test/test_gl.py b/Lib/test/test_gl.py
index 1010b6f..1282fc4 100755
--- a/Lib/test/test_gl.py
+++ b/Lib/test/test_gl.py
@@ -3,7 +3,7 @@
taken mostly from the documentation.
Roger E. Masse
"""
-from test_support import verbose
+from test_support import verbose, TestSkipped
import gl, GL, time
glattrs = ['RGBcolor', 'RGBcursor', 'RGBmode', 'RGBrange', 'RGBwritemask',
@@ -87,8 +87,7 @@ def main():
try:
display = os.environ['DISPLAY']
except:
- # Raise ImportError because regrtest.py handles it specially.
- raise ImportError, "No $DISPLAY -- skipping gl test"
+ raise TestSkipped, "No $DISPLAY -- skipping gl test"
# touch all the attributes of gl without doing anything
if verbose: