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_imageop.py b/Lib/test/test_imageop.py
index 770c9f3..3b14357 100755
--- a/Lib/test/test_imageop.py
+++ b/Lib/test/test_imageop.py
@@ -11,7 +11,7 @@
 
 import warnings
 
-def main():
+def test_main():
 
     # Create binary test files
     uu.decode(get_qualified_path('testrgb'+os.extsep+'uue'), 'test'+os.extsep+'rgb')
@@ -145,4 +145,5 @@
             return fullname
     return name
 
-main()
+if __name__ == '__main__':
+    test_main()