diff options
| author | Brett Cannon <bcannon@gmail.com> | 2008-03-03 04:19:29 (GMT) |
|---|---|---|
| committer | Brett Cannon <bcannon@gmail.com> | 2008-03-03 04:19:29 (GMT) |
| commit | 7dbd91811d87b75cb43441ed6e356232bcf60d28 (patch) | |
| tree | 8a6d0ac4e7c4adb7e724a1274e24d83f5b8e7481 /Lib/test/test_gl.py | |
| parent | 963c80fd45d8c94d15ea4085ce200365018a1556 (diff) | |
| download | cpython-7dbd91811d87b75cb43441ed6e356232bcf60d28.zip cpython-7dbd91811d87b75cb43441ed6e356232bcf60d28.tar.gz cpython-7dbd91811d87b75cb43441ed6e356232bcf60d28.tar.bz2 | |
Add test_main() functions to various tests where it was simple to do. Done so
that regrtest can execute the test_main() directly instead of relying on import
side-effects.
Diffstat (limited to 'Lib/test/test_gl.py')
| -rwxr-xr-x | Lib/test/test_gl.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/test/test_gl.py b/Lib/test/test_gl.py index c9cce77..20fd776 100755 --- a/Lib/test/test_gl.py +++ b/Lib/test/test_gl.py @@ -81,7 +81,7 @@ glattrs = ['RGBcolor', 'RGBcursor', 'RGBmode', 'RGBrange', 'RGBwritemask', 'xfpt4s', 'xfpti', 'xfpts', 'zbuffer', 'zclear', 'zdraw', 'zfunction', 'zsource', 'zwritemask'] -def main(): +def test_main(): # insure that we at least have an X display before continuing. import os try: @@ -147,4 +147,6 @@ def main(): print 'winclose' gl.winclose(w) -main() + +if __name__ == '__main__': + test_main() |
