diff options
author | Brett Cannon <bcannon@gmail.com> | 2008-03-03 04:19:29 +0000 |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2008-03-03 04:19:29 +0000 |
commit | a61d58722ddb976ba8c413338995ad515dd6988f (patch) | |
tree | c0d2700c010f550db94f51f218cf557dfdae1af3 /Lib/test/test_imageop.py | |
parent | 3a13d49e989add10ac87c297cb59053d0b4ca8a5 (diff) | |
download | cpython-a61d58722ddb976ba8c413338995ad515dd6988f.tar.gz |
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.
Diffstat (limited to 'Lib/test/test_imageop.py')
-rwxr-xr-x | Lib/test/test_imageop.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_imageop.py b/Lib/test/test_imageop.py index 770c9f3c3f..3b14357483 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() |