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_al.py b/Lib/test/test_al.py
index 02876f0..54496c1 100755
--- a/Lib/test/test_al.py
+++ b/Lib/test/test_al.py
@@ -11,7 +11,7 @@
# This is a very unobtrusive test for the existence of the al module and all its
# attributes. More comprehensive examples can be found in Demo/al
-def main():
+def test_main():
# touch all the attributes of al without doing anything
if verbose:
print 'Touching al module attributes...'
@@ -20,4 +20,6 @@
print 'touching: ', attr
getattr(al, attr)
-main()
+
+if __name__ == '__main__':
+ test_main()