tests/test-ancestor.py
changeset 23330 37c3731d8a58
parent 23329 c6cd4b8b76f8
child 23331 3b1b8f25443e
--- a/tests/test-ancestor.py	Fri Nov 14 14:50:03 2014 -0800
+++ b/tests/test-ancestor.py	Sat Nov 15 18:52:44 2014 -0800
@@ -132,7 +132,10 @@
                     print "  C returned:      %s" % cgcas
                     print "  Python returned: %s" % pygcas
 
-if __name__ == '__main__':
+def main():
     test_missingancestors()
     test_lazyancestors()
     test_gca()
+
+if __name__ == '__main__':
+    main()