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.
This commit is contained in:
Brett Cannon 2008-03-03 04:19:29 +00:00
parent 963c80fd45
commit 7dbd91811d
9 changed files with 63 additions and 36 deletions

View file

@ -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()