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.
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 @@
 '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 @@
         print 'winclose'
     gl.winclose(w)
 
-main()
+
+if __name__ == '__main__':
+    test_main()