summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_imageop.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_imageop.py')
-rwxr-xr-xLib/test/test_imageop.py5
1 files changed, 3 insertions, 2 deletions
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 imageop, uu, os, imgfile
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 @@ def get_qualified_path(name):
return fullname
return name
-main()
+if __name__ == '__main__':
+ test_main()