Created
February 21, 2013 23:35
-
-
Save msabramo/5009465 to your computer and use it in GitHub Desktop.
Add tox support to PyStemmer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Mentioned in message on mailing list: http://article.gmane.org/gmane.comp.search.snowball/1399