You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pylucene-commits@lucene.apache.org by va...@apache.org on 2011/12/08 23:22:34 UTC
svn commit: r1212171 -
/lucene/pylucene/branches/pylucene_3_5/test/test_ThaiAnalyzer.py
Author: vajda
Date: Thu Dec 8 22:22:34 2011
New Revision: 1212171
URL: http://svn.apache.org/viewvc?rev=1212171&view=rev
Log:
merged rev 1212170 from branch_3x
Modified:
lucene/pylucene/branches/pylucene_3_5/test/test_ThaiAnalyzer.py
Modified: lucene/pylucene/branches/pylucene_3_5/test/test_ThaiAnalyzer.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/branches/pylucene_3_5/test/test_ThaiAnalyzer.py?rev=1212171&r1=1212170&r2=1212171&view=diff
==============================================================================
--- lucene/pylucene/branches/pylucene_3_5/test/test_ThaiAnalyzer.py (original)
+++ lucene/pylucene/branches/pylucene_3_5/test/test_ThaiAnalyzer.py Thu Dec 8 22:22:34 2011
@@ -94,12 +94,15 @@ class ThaiAnalyzerTestCase(BaseTokenStre
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:
- main()
+ print >>sys.stderr, "Thai not supported by this JVM, tests skipped"