diff Lib/test/test_code.py @ 46242:4c5065ddb9bd legacy-trunk

Add ``if __name__ == '__main__'`` to some test files where it didn't take a lot of effort to do so.
author Brett Cannon <bcannon@gmail.com>
date Tue, 01 Apr 2008 12:46:02 +0000
parents 8ef3f8cf90e1
children a171048daf76
line wrap: on
line diff
--- a/Lib/test/test_code.py	Tue Apr 01 12:37:43 2008 +0000
+++ b/Lib/test/test_code.py	Tue Apr 01 12:46:02 2008 +0000
@@ -100,3 +100,7 @@
     from test.test_support import run_doctest
     from test import test_code
     run_doctest(test_code, verbose)
+
+
+if __name__ == '__main__':
+    test_main()