fnp
/
pylucene.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pylucene 3.5.0-3
[pylucene.git]
/
test
/
test_ThaiAnalyzer.py
diff --git
a/test/test_ThaiAnalyzer.py
b/test/test_ThaiAnalyzer.py
index
70dfffd
..
d6ba26b
100644
(file)
--- a/
test/test_ThaiAnalyzer.py
+++ b/
test/test_ThaiAnalyzer.py
@@
-94,12
+94,15
@@
class ThaiAnalyzerTestCase(BaseTokenStreamTestCase):
if __name__ == "__main__":
import sys, lucene
lucene.initVM()
if __name__ == "__main__":
import sys, lucene
lucene.initVM()
- if '-loop' in sys.argv:
- sys.argv.remove('-loop')
- while True:
- try:
- main()
- except:
- pass
+ if ThaiWordFilter.DBBI_AVAILABLE:
+ if '-loop' in sys.argv:
+ sys.argv.remove('-loop')
+ while True:
+ try:
+ main()
+ except:
+ pass
+ else:
+ main()
else:
else:
- main()
+ print >>sys.stderr, "Thai not supported by this JVM, tests skipped"