Commits

Juancarlo Añez committed 85a6d6e

Make grako.test an executable package.

Comments (0)

Files changed (4)

 
 test:
-	python -u -m grako.test.bootstrap_tests 2>&1
-	python -u -m grako.test.buffering_test  2>&1
+	python -u -m grako.test 2>&1

grako/test/__init__.py

 The Grako test suite.
 """
 from __future__ import print_function, division, absolute_import, unicode_literals
+
+if __name__ == '__main__':
+    from . import bootstrap_tests
+    from . import  buffering_test
+
+    bootstrap_tests.main()
+    buffering_test.main()

grako/test/__main__.py

+__init__.py

grako/test/buffering_test.py

 def suite():
     pass
 
+def main():
+    unittest.main()
+
 if __name__ == '__main__':
-    unittest.main()
+    main()