summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_codeop.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_codeop.py')
-rw-r--r--Lib/test/test_codeop.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/Lib/test/test_codeop.py b/Lib/test/test_codeop.py
index 7847fb3..fbe4a31 100644
--- a/Lib/test/test_codeop.py
+++ b/Lib/test/test_codeop.py
@@ -87,4 +87,10 @@ class CodeopTests(unittest.TestCase):
self.assertNotEquals(compile_command("a = 1\n", "abc").co_filename,
compile("a = 1\n", "def", 'single').co_filename)
-run_unittest(CodeopTests)
+
+def test_main():
+ run_unittest(CodeopTests)
+
+
+if __name__ == "__main__":
+ test_main()