test-ancestor: define a main function
authorSiddharth Agarwal <sid0@fb.com>
Sat, 15 Nov 2014 18:52:44 -0800
changeset 23330 37c3731d8a58
parent 23329 c6cd4b8b76f8
child 23331 3b1b8f25443e
test-ancestor: define a main function We're going to add to it in upcoming patches.
tests/test-ancestor.py
--- 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()