Skip to content

Instantly share code, notes, and snippets.

@msabramo
Created February 21, 2013 23:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save msabramo/5009465 to your computer and use it in GitHub Desktop.
Save msabramo/5009465 to your computer and use it in GitHub Desktop.
Add tox support to PyStemmer
Index: tox.ini
===================================================================
--- tox.ini (revision 0)
+++ tox.ini (revision 0)
@@ -0,0 +1,6 @@
+[tox]
+envlist = py26, py27, py33, pypy
+
+[testenv]
+commands =
+ {envpython} runtests.py -v
Index: runtests.py
===================================================================
--- runtests.py (revision 560)
+++ runtests.py (working copy)
@@ -5,6 +5,8 @@
py3k = sys.version_info >= (3, 0)
if py3k:
- doctest.testfile('docs/quickstart_python3.txt')
+ num_failures, num_tests = doctest.testfile('docs/quickstart_python3.txt')
else:
- doctest.testfile('docs/quickstart.txt')
+ num_failures, num_tests = doctest.testfile('docs/quickstart.txt')
+
+sys.exit(num_failures)
@msabramo
Copy link
Author

Mentioned in message on mailing list: http://article.gmane.org/gmane.comp.search.snowball/1399

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment