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_cl.py b/Lib/test/test_cl.py
index abfe3c1..a2728b7 100755
--- a/Lib/test/test_cl.py
+++ b/Lib/test/test_cl.py
@@ -66,7 +66,7 @@
# This is a very inobtrusive test for the existence of the cl
# module and all its attributes.
-def main():
+def test_main():
# touch all the attributes of al without doing anything
if verbose:
print 'Touching cl module attributes...'
@@ -75,4 +75,7 @@
print 'touching: ', attr
getattr(cl, attr)
-main()
+
+
+if __name__ == '__main__':
+ test_main()