~snowball-yiddish-dev/snowball-yiddish/trunk

« back to all changes in this revision

Viewing changes to pystemmer/runtests.py

  • Committer: richard
  • Date: 2011-08-09 15:48:33 UTC
  • Revision ID: svn-v4:633ccae0-01f4-0310-8c99-d3591da6f01f:trunk:547
* *: Patch from Peter Bouda, with some small tweaks, to support
  python 3.X.  Tested with python 3.2rc3
* Incompatibility: in python 2.X, algorithms() now returns unicode
  strings, instead of byte strings.
* Update to use latest libstemmer.
* Bump version number to 1.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/env python
2
2
 
3
 
import doctest
4
 
doctest.testfile('docs/quickstart.txt')
5
 
 
 
3
import sys, doctest
 
4
 
 
5
py3k = sys.version_info >= (3, 0)
 
6
 
 
7
if py3k:
 
8
    doctest.testfile('docs/quickstart_python3.txt')
 
9
else:
 
10
    doctest.testfile('docs/quickstart.txt')