lucene-pylucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From va...@apache.org
Subject svn commit: r1497097 - in /lucene/pylucene/trunk: ./ jcc/ samples/ test/
Date Wed, 26 Jun 2013 21:07:13 GMT
Author: vajda
Date: Wed Jun 26 21:07:12 2013
New Revision: 1497097

URL: http://svn.apache.org/r1497097
Log:
  - merged in 4.3.1 changes
  - fixed some - but not all - test failures

Modified:
    lucene/pylucene/trunk/   (props changed)
    lucene/pylucene/trunk/CHANGES   (contents, props changed)
    lucene/pylucene/trunk/Makefile   (contents, props changed)
    lucene/pylucene/trunk/jcc/   (props changed)
    lucene/pylucene/trunk/jcc/setup.py   (props changed)
    lucene/pylucene/trunk/samples/   (props changed)
    lucene/pylucene/trunk/test/test_Analyzers.py
    lucene/pylucene/trunk/test/test_Binary.py
    lucene/pylucene/trunk/test/test_BinaryDocument.py
    lucene/pylucene/trunk/test/test_BooleanOr.py
    lucene/pylucene/trunk/test/test_BooleanQuery.py
    lucene/pylucene/trunk/test/test_CachingWrapperFilter.py
    lucene/pylucene/trunk/test/test_Collections.py
    lucene/pylucene/trunk/test/test_DocBoost.py
    lucene/pylucene/trunk/test/test_FilteredQuery.py
    lucene/pylucene/trunk/test/test_FuzzyQuery.py
    lucene/pylucene/trunk/test/test_Highlighter.py
    lucene/pylucene/trunk/test/test_ICUFoldingFilter.py
    lucene/pylucene/trunk/test/test_ICUNormalizer2Filter.py
    lucene/pylucene/trunk/test/test_ICUTransformFilter.py
    lucene/pylucene/trunk/test/test_Not.py
    lucene/pylucene/trunk/test/test_PerFieldAnalyzerWrapper.py
    lucene/pylucene/trunk/test/test_PhraseQuery.py
    lucene/pylucene/trunk/test/test_PositionIncrement.py
    lucene/pylucene/trunk/test/test_PrefixFilter.py
    lucene/pylucene/trunk/test/test_PrefixQuery.py
    lucene/pylucene/trunk/test/test_PyLucene.py
    lucene/pylucene/trunk/test/test_PyLuceneThread.py
    lucene/pylucene/trunk/test/test_PythonDirectory.py
    lucene/pylucene/trunk/test/test_PythonQueryParser.py
    lucene/pylucene/trunk/test/test_RegexQuery.py
    lucene/pylucene/trunk/test/test_RewriteQuery.py
    lucene/pylucene/trunk/test/test_Similarity.py
    lucene/pylucene/trunk/test/test_Sort.py
    lucene/pylucene/trunk/test/test_StopAnalyzer.py
    lucene/pylucene/trunk/test/test_StopWords.py
    lucene/pylucene/trunk/test/test_TermRangeFilter.py
    lucene/pylucene/trunk/test/test_TermRangeQuery.py
    lucene/pylucene/trunk/test/test_ThaiAnalyzer.py
    lucene/pylucene/trunk/test/test_bug1564.py
    lucene/pylucene/trunk/test/test_bug1763.py
    lucene/pylucene/trunk/test/test_bug1842.py

Propchange: lucene/pylucene/trunk/
------------------------------------------------------------------------------
  Merged /lucene/pylucene/branches/pylucene_4_3:r1479735-1497065

Modified: lucene/pylucene/trunk/CHANGES
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/CHANGES?rev=1497097&r1=1497096&r2=1497097&view=diff
==============================================================================
--- lucene/pylucene/trunk/CHANGES (original)
+++ lucene/pylucene/trunk/CHANGES Wed Jun 26 21:07:12 2013
@@ -1,5 +1,15 @@
-Version 3.6.2 ->
---------------------
+Version 4.3.1 ->
+----------------------
+ - enabled wrapping of polish analyzer and stemmer
+ - 
+
+Version 4.3.0 -> 4.3.1
+----------------------
+ - added vmargs=['-Djava.awt.headless=true'] to all unit test initVM() calls
+ - using Lucene 4.3.1 sources
+
+Version 3.6.2 -> 4.3.0
+----------------------
  - switched build to --use_full_names, Python wrappers now follow Java packages
  - removed all --rename and most --exclude entries from jcc command line
  - removed Lucene in Action samples as they're incompatible with the 4.x API

Propchange: lucene/pylucene/trunk/CHANGES
------------------------------------------------------------------------------
  Merged /lucene/pylucene/branches/pylucene_4_3/CHANGES:r1479735-1497065

Modified: lucene/pylucene/trunk/Makefile
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/Makefile?rev=1497097&r1=1497096&r2=1497097&view=diff
==============================================================================
--- lucene/pylucene/trunk/Makefile (original)
+++ lucene/pylucene/trunk/Makefile Wed Jun 26 21:07:12 2013
@@ -15,9 +15,9 @@
 # site-packages directory.
 #
 
-VERSION=4.3-0
+VERSION=4.x
 LUCENE_SVN_VER=HEAD
-LUCENE_VER=4.3
+LUCENE_VER=4.x
 LUCENE_SVN=http://svn.apache.org/repos/asf/lucene/dev/branches/branch_4x
 PYLUCENE:=$(shell pwd)
 LUCENE_SRC=lucene-java-$(LUCENE_VER)

Propchange: lucene/pylucene/trunk/Makefile
------------------------------------------------------------------------------
  Merged /lucene/pylucene/branches/pylucene_4_3/Makefile:r1479735-1497065

Propchange: lucene/pylucene/trunk/jcc/
------------------------------------------------------------------------------
  Merged /lucene/pylucene/branches/pylucene_4_3/jcc:r1479735-1497065

Propchange: lucene/pylucene/trunk/jcc/setup.py
------------------------------------------------------------------------------
  Merged /lucene/pylucene/branches/pylucene_4_3/jcc/setup.py:r1479735-1497065

Propchange: lucene/pylucene/trunk/samples/
------------------------------------------------------------------------------
  Merged /lucene/pylucene/branches/pylucene_4_3/samples:r1479735-1497065

Modified: lucene/pylucene/trunk/test/test_Analyzers.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/test/test_Analyzers.py?rev=1497097&r1=1497096&r2=1497097&view=diff
==============================================================================
--- lucene/pylucene/trunk/test/test_Analyzers.py (original)
+++ lucene/pylucene/trunk/test/test_Analyzers.py Wed Jun 26 21:07:12 2013
@@ -125,7 +125,7 @@ class PayloadSetter(PythonTokenFilter):
 
 
 if __name__ == "__main__":
-    lucene.initVM()
+    lucene.initVM(vmargs=['-Djava.awt.headless=true'])
     if '-loop' in sys.argv:
         sys.argv.remove('-loop')
         while True:

Modified: lucene/pylucene/trunk/test/test_Binary.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/test/test_Binary.py?rev=1497097&r1=1497096&r2=1497097&view=diff
==============================================================================
--- lucene/pylucene/trunk/test/test_Binary.py (original)
+++ lucene/pylucene/trunk/test/test_Binary.py Wed Jun 26 21:07:12 2013
@@ -38,7 +38,7 @@ class BinaryTestCase(unittest.TestCase):
 
 
 if __name__ == '__main__':
-    lucene.initVM()
+    lucene.initVM(vmargs=['-Djava.awt.headless=true'])
     if '-loop' in sys.argv:
         sys.argv.remove('-loop')
         while True:

Modified: lucene/pylucene/trunk/test/test_BinaryDocument.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/test/test_BinaryDocument.py?rev=1497097&r1=1497096&r2=1497097&view=diff
==============================================================================
--- lucene/pylucene/trunk/test/test_BinaryDocument.py (original)
+++ lucene/pylucene/trunk/test/test_BinaryDocument.py Wed Jun 26 21:07:12 2013
@@ -98,7 +98,7 @@ class TestBinaryDocument(PyLuceneTestCas
 
 
 if __name__ == '__main__':
-    lucene.initVM()
+    lucene.initVM(vmargs=['-Djava.awt.headless=true'])
     if '-loop' in sys.argv:
         sys.argv.remove('-loop')
         while True:

Modified: lucene/pylucene/trunk/test/test_BooleanOr.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/test/test_BooleanOr.py?rev=1497097&r1=1497096&r2=1497097&view=diff
==============================================================================
--- lucene/pylucene/trunk/test/test_BooleanOr.py (original)
+++ lucene/pylucene/trunk/test/test_BooleanOr.py Wed Jun 26 21:07:12 2013
@@ -118,7 +118,7 @@ class BooleanOrTestCase(PyLuceneTestCase
 
 
 if __name__ == "__main__":
-    lucene.initVM()
+    lucene.initVM(vmargs=['-Djava.awt.headless=true'])
     if '-loop' in sys.argv:
         sys.argv.remove('-loop')
         while True:

Modified: lucene/pylucene/trunk/test/test_BooleanQuery.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/test/test_BooleanQuery.py?rev=1497097&r1=1497096&r2=1497097&view=diff
==============================================================================
--- lucene/pylucene/trunk/test/test_BooleanQuery.py (original)
+++ lucene/pylucene/trunk/test/test_BooleanQuery.py Wed Jun 26 21:07:12 2013
@@ -48,7 +48,7 @@ class TestBooleanQuery(PyLuceneTestCase)
 
 
 if __name__ == "__main__":
-    lucene.initVM()
+    lucene.initVM(vmargs=['-Djava.awt.headless=true'])
     if '-loop' in sys.argv:
         sys.argv.remove('-loop')
         while True:

Modified: lucene/pylucene/trunk/test/test_CachingWrapperFilter.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/test/test_CachingWrapperFilter.py?rev=1497097&r1=1497096&r2=1497097&view=diff
==============================================================================
--- lucene/pylucene/trunk/test/test_CachingWrapperFilter.py (original)
+++ lucene/pylucene/trunk/test/test_CachingWrapperFilter.py Wed Jun 26 21:07:12 2013
@@ -62,7 +62,7 @@ class CachingWrapperFilterTestCase(PyLuc
 
 
 if __name__ == "__main__":
-    lucene.initVM()
+    lucene.initVM(vmargs=['-Djava.awt.headless=true'])
     if '-loop' in sys.argv:
         sys.argv.remove('-loop')
         while True:

Modified: lucene/pylucene/trunk/test/test_Collections.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/test/test_Collections.py?rev=1497097&r1=1497096&r2=1497097&view=diff
==============================================================================
--- lucene/pylucene/trunk/test/test_Collections.py (original)
+++ lucene/pylucene/trunk/test/test_Collections.py Wed Jun 26 21:07:12 2013
@@ -252,5 +252,5 @@ class Test_CollectionsBoolList(Test_Coll
 
 
 if __name__ == '__main__':
-    lucene.initVM()
+    lucene.initVM(vmargs=['-Djava.awt.headless=true'])
     unittest.main()

Modified: lucene/pylucene/trunk/test/test_DocBoost.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/test/test_DocBoost.py?rev=1497097&r1=1497096&r2=1497097&view=diff
==============================================================================
--- lucene/pylucene/trunk/test/test_DocBoost.py (original)
+++ lucene/pylucene/trunk/test/test_DocBoost.py Wed Jun 26 21:07:12 2013
@@ -70,7 +70,7 @@ class DocBoostTestCase(PyLuceneTestCase)
 
 
 if __name__ == "__main__":
-    lucene.initVM()
+    lucene.initVM(vmargs=['-Djava.awt.headless=true'])
     if '-loop' in sys.argv:
         sys.argv.remove('-loop')
         while True:

Modified: lucene/pylucene/trunk/test/test_FilteredQuery.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/test/test_FilteredQuery.py?rev=1497097&r1=1497096&r2=1497097&view=diff
==============================================================================
--- lucene/pylucene/trunk/test/test_FilteredQuery.py (original)
+++ lucene/pylucene/trunk/test/test_FilteredQuery.py Wed Jun 26 21:07:12 2013
@@ -119,7 +119,7 @@ class FilteredQueryTestCase(PyLuceneTest
 
 
 if __name__ == "__main__":
-    lucene.initVM()
+    lucene.initVM(vmargs=['-Djava.awt.headless=true'])
     if '-loop' in sys.argv:
         sys.argv.remove('-loop')
         while True:

Modified: lucene/pylucene/trunk/test/test_FuzzyQuery.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/test/test_FuzzyQuery.py?rev=1497097&r1=1497096&r2=1497097&view=diff
==============================================================================
--- lucene/pylucene/trunk/test/test_FuzzyQuery.py (original)
+++ lucene/pylucene/trunk/test/test_FuzzyQuery.py Wed Jun 26 21:07:12 2013
@@ -353,7 +353,7 @@ class FuzzyQueryTestCase(PyLuceneTestCas
   
 
 if __name__ == "__main__":
-    lucene.initVM()
+    lucene.initVM(vmargs=['-Djava.awt.headless=true'])
     if '-loop' in sys.argv:
         sys.argv.remove('-loop')
         while True:

Modified: lucene/pylucene/trunk/test/test_Highlighter.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/test/test_Highlighter.py?rev=1497097&r1=1497096&r2=1497097&view=diff
==============================================================================
--- lucene/pylucene/trunk/test/test_Highlighter.py (original)
+++ lucene/pylucene/trunk/test/test_Highlighter.py Wed Jun 26 21:07:12 2013
@@ -146,7 +146,7 @@ class HighlighterTestCase(PyLuceneTestCa
         
 
 if __name__ == "__main__":
-    lucene.initVM()
+    lucene.initVM(vmargs=['-Djava.awt.headless=true'])
     if '-loop' in sys.argv:
         sys.argv.remove('-loop')
         while True:

Modified: lucene/pylucene/trunk/test/test_ICUFoldingFilter.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/test/test_ICUFoldingFilter.py?rev=1497097&r1=1497096&r2=1497097&view=diff
==============================================================================
--- lucene/pylucene/trunk/test/test_ICUFoldingFilter.py (original)
+++ lucene/pylucene/trunk/test/test_ICUFoldingFilter.py Wed Jun 26 21:07:12 2013
@@ -83,7 +83,7 @@ if __name__ == "__main__":
         pass
     else:
         if icu.ICU_VERSION >= '49':
-            lucene.initVM()
+            lucene.initVM(vmargs=['-Djava.awt.headless=true'])
             if '-loop' in sys.argv:
                 sys.argv.remove('-loop')
                 while True:

Modified: lucene/pylucene/trunk/test/test_ICUNormalizer2Filter.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/test/test_ICUNormalizer2Filter.py?rev=1497097&r1=1497096&r2=1497097&view=diff
==============================================================================
--- lucene/pylucene/trunk/test/test_ICUNormalizer2Filter.py (original)
+++ lucene/pylucene/trunk/test/test_ICUNormalizer2Filter.py Wed Jun 26 21:07:12 2013
@@ -84,7 +84,7 @@ if __name__ == "__main__":
     except ImportError:
         pass
     else:
-        lucene.initVM()
+        lucene.initVM(vmargs=['-Djava.awt.headless=true'])
         if '-loop' in sys.argv:
             sys.argv.remove('-loop')
             while True:

Modified: lucene/pylucene/trunk/test/test_ICUTransformFilter.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/test/test_ICUTransformFilter.py?rev=1497097&r1=1497096&r2=1497097&view=diff
==============================================================================
--- lucene/pylucene/trunk/test/test_ICUTransformFilter.py (original)
+++ lucene/pylucene/trunk/test/test_ICUTransformFilter.py Wed Jun 26 21:07:12 2013
@@ -82,7 +82,7 @@ if __name__ == "__main__":
     except ImportError:
         pass
     else:
-        lucene.initVM()
+        lucene.initVM(vmargs=['-Djava.awt.headless=true'])
         if '-loop' in sys.argv:
             sys.argv.remove('-loop')
             while True:

Modified: lucene/pylucene/trunk/test/test_Not.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/test/test_Not.py?rev=1497097&r1=1497096&r2=1497097&view=diff
==============================================================================
--- lucene/pylucene/trunk/test/test_Not.py (original)
+++ lucene/pylucene/trunk/test/test_Not.py Wed Jun 26 21:07:12 2013
@@ -46,7 +46,7 @@ class NotTestCase(PyLuceneTestCase):
 
 
 if __name__ == "__main__":
-    lucene.initVM()
+    lucene.initVM(vmargs=['-Djava.awt.headless=true'])
     if '-loop' in sys.argv:
         sys.argv.remove('-loop')
         while True:

Modified: lucene/pylucene/trunk/test/test_PerFieldAnalyzerWrapper.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/test/test_PerFieldAnalyzerWrapper.py?rev=1497097&r1=1497096&r2=1497097&view=diff
==============================================================================
--- lucene/pylucene/trunk/test/test_PerFieldAnalyzerWrapper.py (original)
+++ lucene/pylucene/trunk/test/test_PerFieldAnalyzerWrapper.py Wed Jun 26 21:07:12 2013
@@ -52,7 +52,7 @@ class PerFieldAnalyzerTestCase(PyLuceneT
 
 
 if __name__ == "__main__":
-    lucene.initVM()
+    lucene.initVM(vmargs=['-Djava.awt.headless=true'])
     if '-loop' in sys.argv:
         sys.argv.remove('-loop')
         while True:

Modified: lucene/pylucene/trunk/test/test_PhraseQuery.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/test/test_PhraseQuery.py?rev=1497097&r1=1497096&r2=1497097&view=diff
==============================================================================
--- lucene/pylucene/trunk/test/test_PhraseQuery.py (original)
+++ lucene/pylucene/trunk/test/test_PhraseQuery.py Wed Jun 26 21:07:12 2013
@@ -154,43 +154,6 @@ class PhraseQueryTestCase(PyLuceneTestCa
         query.add(Term("field", "words"))
         scoreDocs = searcher.search(query, None, 50).scoreDocs
         self.assertEqual(1, len(scoreDocs))
-
-        # StopAnalyzer leaves "holes", so this does not match.
-        query = PhraseQuery()
-        query.add(Term("field", "words"))
-        query.add(Term("field", "here"))
-        scoreDocs = searcher.search(query, None, 50).scoreDocs
-        self.assertEqual(0, len(scoreDocs))
-  
-        # Not leaving "holes" with a PythonFilteringTokenFilter setup to not
-        # enable position increments, this does match.
-
-        class stopFilter(PythonFilteringTokenFilter):
-            def __init__(_self, tokenStream):
-                super(stopFilter, _self).__init__(False, tokenStream)
-                _self.termAtt = _self.addAttribute(CharTermAttribute.class_);
-            def accept(_self):
-                return _self.termAtt.toString() not in ("not", "are")
-
-        class stopAnalyzer(PythonAnalyzer):
-            def createComponents(_self, fieldName, reader):
-                source = LowerCaseTokenizer(Version.LUCENE_CURRENT, reader)
-                return Analyzer.TokenStreamComponents(source,
-                                                      stopFilter(source))
-
-        writer = self.getWriter(analyzer=stopAnalyzer())
-        doc = Document()
-        doc.add(Field("field", "the stop words are here", TextField.TYPE_STORED))
-        writer.addDocument(doc)
-        writer.close()
-
-        searcher = self.getSearcher()
-
-        query = PhraseQuery()
-        query.add(Term("field", "words"))
-        query.add(Term("field", "here"))
-        scoreDocs = searcher.search(query, None, 50).scoreDocs
-        self.assertEqual(1, len(scoreDocs))
   
     def testPhraseQueryInConjunctionScorer(self):
 
@@ -264,7 +227,7 @@ class PhraseQueryTestCase(PyLuceneTestCa
 
 
 if __name__ == "__main__":
-    lucene.initVM()
+    lucene.initVM(vmargs=['-Djava.awt.headless=true'])
     if '-loop' in sys.argv:
         sys.argv.remove('-loop')
         while True:

Modified: lucene/pylucene/trunk/test/test_PositionIncrement.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/test/test_PositionIncrement.py?rev=1497097&r1=1497096&r2=1497097&view=diff
==============================================================================
--- lucene/pylucene/trunk/test/test_PositionIncrement.py (original)
+++ lucene/pylucene/trunk/test/test_PositionIncrement.py Wed Jun 26 21:07:12 2013
@@ -178,43 +178,6 @@ class PositionIncrementTestCase(PyLucene
         hits = searcher.search(q, None, 1000).scoreDocs
         self.assertEqual(0, len(hits))
 
-        # should not find "1 2" because there is a gap of 1 in the index
-        qp = QueryParser(Version.LUCENE_CURRENT, "field",
-                         StopWhitespaceAnalyzer(False))
-
-        q = PhraseQuery.cast_(qp.parse("\"1 2\""))
-        hits = searcher.search(q, None, 1000).scoreDocs
-        self.assertEqual(0, len(hits))
-
-        # omitted stop word cannot help because stop filter swallows the
-        # increments.
-        q = PhraseQuery.cast_(qp.parse("\"1 stop 2\""))
-        hits = searcher.search(q, None, 1000).scoreDocs
-        self.assertEqual(0, len(hits))
-
-        # query parser alone won't help, because stop filter swallows the
-        # increments.
-        qp.setEnablePositionIncrements(True)
-        q = PhraseQuery.cast_(qp.parse("\"1 stop 2\""))
-        hits = searcher.search(q, None, 1000).scoreDocs
-        self.assertEqual(0, len(hits))
-
-        # stop filter alone won't help, because query parser swallows the
-        # increments.
-        qp.setEnablePositionIncrements(False)
-        q = PhraseQuery.cast_(qp.parse("\"1 stop 2\""))
-        hits = searcher.search(q, None, 1000).scoreDocs
-        self.assertEqual(0, len(hits))
-      
-        # when both qp qnd stopFilter propagate increments, we should find
-        # the doc.
-        qp = QueryParser(Version.LUCENE_CURRENT, "field",
-                         StopWhitespaceAnalyzer(True))
-        qp.setEnablePositionIncrements(True)
-        q = PhraseQuery.cast_(qp.parse("\"1 stop 2\""))
-        hits = searcher.search(q, None, 1000).scoreDocs
-        self.assertEqual(1, len(hits))
-
     def testPayloadsPos0(self):
 
         writer = self.getWriter(analyzer=TestPayloadAnalyzer())
@@ -302,7 +265,7 @@ class StopWhitespaceAnalyzer(PythonAnaly
 
         class _stopFilter(PythonFilteringTokenFilter):
             def __init__(_self, tokenStream):
-                super(_stopFilter, _self).__init__(self.enablePositionIncrements, tokenStream)
+                super(_stopFilter, _self).__init__(Version.LUCENE_CURRENT, tokenStream)
                 _self.termAtt = _self.addAttribute(CharTermAttribute.class_);
             def accept(_self):
                 return _self.termAtt.toString() != "stop"
@@ -351,7 +314,7 @@ class PayloadFilter(PythonTokenFilter):
 
 
 if __name__ == "__main__":
-    lucene.initVM()
+    lucene.initVM(vmargs=['-Djava.awt.headless=true'])
     if '-loop' in sys.argv:
         sys.argv.remove('-loop')
         while True:

Modified: lucene/pylucene/trunk/test/test_PrefixFilter.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/test/test_PrefixFilter.py?rev=1497097&r1=1497096&r2=1497097&view=diff
==============================================================================
--- lucene/pylucene/trunk/test/test_PrefixFilter.py (original)
+++ lucene/pylucene/trunk/test/test_PrefixFilter.py Wed Jun 26 21:07:12 2013
@@ -99,7 +99,7 @@ class PrefixFilterTestCase(PyLuceneTestC
 
 
 if __name__ == "__main__":
-    lucene.initVM()
+    lucene.initVM(vmargs=['-Djava.awt.headless=true'])
     if '-loop' in sys.argv:
         sys.argv.remove('-loop')
         while True:

Modified: lucene/pylucene/trunk/test/test_PrefixQuery.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/test/test_PrefixQuery.py?rev=1497097&r1=1497096&r2=1497097&view=diff
==============================================================================
--- lucene/pylucene/trunk/test/test_PrefixQuery.py (original)
+++ lucene/pylucene/trunk/test/test_PrefixQuery.py Wed Jun 26 21:07:12 2013
@@ -49,7 +49,7 @@ class PrefixQueryTestCase(PyLuceneTestCa
 
 
 if __name__ == "__main__":
-    lucene.initVM()
+    lucene.initVM(vmargs=['-Djava.awt.headless=true'])
     if '-loop' in sys.argv:
         sys.argv.remove('-loop')
         while True:

Modified: lucene/pylucene/trunk/test/test_PyLucene.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/test/test_PyLucene.py?rev=1497097&r1=1497096&r2=1497097&view=diff
==============================================================================
--- lucene/pylucene/trunk/test/test_PyLucene.py (original)
+++ lucene/pylucene/trunk/test/test_PyLucene.py Wed Jun 26 21:07:12 2013
@@ -337,7 +337,7 @@ class Test_PyLuceneWithMMapStore(Test_Py
 
 
 if __name__ == "__main__":
-    lucene.initVM()
+    lucene.initVM(vmargs=['-Djava.awt.headless=true'])
     if '-loop' in sys.argv:
         sys.argv.remove('-loop')
         while True:

Modified: lucene/pylucene/trunk/test/test_PyLuceneThread.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/test/test_PyLuceneThread.py?rev=1497097&r1=1497096&r2=1497097&view=diff
==============================================================================
--- lucene/pylucene/trunk/test/test_PyLuceneThread.py (original)
+++ lucene/pylucene/trunk/test/test_PyLuceneThread.py Wed Jun 26 21:07:12 2013
@@ -109,7 +109,7 @@ class PyLuceneThreadTestCase(PyLuceneTes
 
 
 if __name__ == "__main__":
-    lucene.initVM()
+    lucene.initVM(vmargs=['-Djava.awt.headless=true'])
     if '-loop' in sys.argv:
         sys.argv.remove('-loop')
         while True:

Modified: lucene/pylucene/trunk/test/test_PythonDirectory.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/test/test_PythonDirectory.py?rev=1497097&r1=1497096&r2=1497097&view=diff
==============================================================================
--- lucene/pylucene/trunk/test/test_PythonDirectory.py (original)
+++ lucene/pylucene/trunk/test/test_PythonDirectory.py Wed Jun 26 21:07:12 2013
@@ -256,7 +256,7 @@ class PythonDirectoryTests(unittest.Test
                        
 
 if __name__ == "__main__":
-    env = lucene.initVM()
+    env = lucene.initVM(vmargs=['-Djava.awt.headless=true'])
     if '-loop' in sys.argv:
         sys.argv.remove('-loop')
         while True:

Modified: lucene/pylucene/trunk/test/test_PythonQueryParser.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/test/test_PythonQueryParser.py?rev=1497097&r1=1497096&r2=1497097&view=diff
==============================================================================
--- lucene/pylucene/trunk/test/test_PythonQueryParser.py (original)
+++ lucene/pylucene/trunk/test/test_PythonQueryParser.py Wed Jun 26 21:07:12 2013
@@ -67,7 +67,7 @@ class PythonMultiFieldQueryParserTestCas
 
 
 if __name__ == "__main__":
-    lucene.initVM()
+    lucene.initVM(vmargs=['-Djava.awt.headless=true'])
     if '-loop' in sys.argv:
         sys.argv.remove('-loop')
         while True:

Modified: lucene/pylucene/trunk/test/test_RegexQuery.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/test/test_RegexQuery.py?rev=1497097&r1=1497096&r2=1497097&view=diff
==============================================================================
--- lucene/pylucene/trunk/test/test_RegexQuery.py (original)
+++ lucene/pylucene/trunk/test/test_RegexQuery.py Wed Jun 26 21:07:12 2013
@@ -84,7 +84,7 @@ class TestRegexQuery(PyLuceneTestCase):
 
 
 if __name__ == "__main__":
-    lucene.initVM()
+    lucene.initVM(vmargs=['-Djava.awt.headless=true'])
     if '-loop' in sys.argv:
         sys.argv.remove('-loop')
         while True:

Modified: lucene/pylucene/trunk/test/test_RewriteQuery.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/test/test_RewriteQuery.py?rev=1497097&r1=1497096&r2=1497097&view=diff
==============================================================================
--- lucene/pylucene/trunk/test/test_RewriteQuery.py (original)
+++ lucene/pylucene/trunk/test/test_RewriteQuery.py Wed Jun 26 21:07:12 2013
@@ -44,7 +44,7 @@ class QueryRewriteTest(PyLuceneTestCase)
     
 
 if __name__ == "__main__":
-    env = lucene.initVM()
+    env = lucene.initVM(vmargs=['-Djava.awt.headless=true'])
     if '-loop' in sys.argv:
         sys.argv.remove('-loop')
         while True:

Modified: lucene/pylucene/trunk/test/test_Similarity.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/test/test_Similarity.py?rev=1497097&r1=1497096&r2=1497097&view=diff
==============================================================================
--- lucene/pylucene/trunk/test/test_Similarity.py (original)
+++ lucene/pylucene/trunk/test/test_Similarity.py Wed Jun 26 21:07:12 2013
@@ -129,7 +129,7 @@ class SimilarityTestCase(PyLuceneTestCas
 
 
 if __name__ == "__main__":
-    lucene.initVM()
+    lucene.initVM(vmargs=['-Djava.awt.headless=true'])
     if '-loop' in sys.argv:
         sys.argv.remove('-loop')
         while True:

Modified: lucene/pylucene/trunk/test/test_Sort.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/test/test_Sort.py?rev=1497097&r1=1497096&r2=1497097&view=diff
==============================================================================
--- lucene/pylucene/trunk/test/test_Sort.py (original)
+++ lucene/pylucene/trunk/test/test_Sort.py Wed Jun 26 21:07:12 2013
@@ -1148,7 +1148,7 @@ class MyFieldComparatorSource(PythonFiel
 
 
 if __name__ == "__main__":
-    env = lucene.initVM()
+    env = lucene.initVM(vmargs=['-Djava.awt.headless=true'])
     if '-loop' in sys.argv:
         sys.argv.remove('-loop')
         while True:

Modified: lucene/pylucene/trunk/test/test_StopAnalyzer.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/test/test_StopAnalyzer.py?rev=1497097&r1=1497096&r2=1497097&view=diff
==============================================================================
--- lucene/pylucene/trunk/test/test_StopAnalyzer.py (original)
+++ lucene/pylucene/trunk/test/test_StopAnalyzer.py Wed Jun 26 21:07:12 2013
@@ -88,7 +88,7 @@ class StopAnalyzerTestCase(unittest.Test
 
 
 if __name__ == "__main__":
-    lucene.initVM()
+    lucene.initVM(vmargs=['-Djava.awt.headless=true'])
     if '-loop' in sys.argv:
         sys.argv.remove('-loop')
         while True:

Modified: lucene/pylucene/trunk/test/test_StopWords.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/test/test_StopWords.py?rev=1497097&r1=1497096&r2=1497097&view=diff
==============================================================================
--- lucene/pylucene/trunk/test/test_StopWords.py (original)
+++ lucene/pylucene/trunk/test/test_StopWords.py Wed Jun 26 21:07:12 2013
@@ -42,7 +42,7 @@ class StopWordsTestCase(unittest.TestCas
 
 
 if __name__ == "__main__":
-    lucene.initVM()
+    lucene.initVM(vmargs=['-Djava.awt.headless=true'])
     if '-loop' in sys.argv:
         sys.argv.remove('-loop')
         while True:

Modified: lucene/pylucene/trunk/test/test_TermRangeFilter.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/test/test_TermRangeFilter.py?rev=1497097&r1=1497096&r2=1497097&view=diff
==============================================================================
--- lucene/pylucene/trunk/test/test_TermRangeFilter.py (original)
+++ lucene/pylucene/trunk/test/test_TermRangeFilter.py Wed Jun 26 21:07:12 2013
@@ -182,7 +182,7 @@ class TestTermRangeFilter(BaseTestRangeF
 
 
 if __name__ == "__main__":
-    lucene.initVM()
+    lucene.initVM(vmargs=['-Djava.awt.headless=true'])
     if '-loop' in sys.argv:
         sys.argv.remove('-loop')
         while True:

Modified: lucene/pylucene/trunk/test/test_TermRangeQuery.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/test/test_TermRangeQuery.py?rev=1497097&r1=1497096&r2=1497097&view=diff
==============================================================================
--- lucene/pylucene/trunk/test/test_TermRangeQuery.py (original)
+++ lucene/pylucene/trunk/test/test_TermRangeQuery.py Wed Jun 26 21:07:12 2013
@@ -107,7 +107,7 @@ class TermRangeQueryTestCase(PyLuceneTes
 
 
 if __name__ == "__main__":
-    lucene.initVM()
+    lucene.initVM(vmargs=['-Djava.awt.headless=true'])
     if '-loop' in sys.argv:
         sys.argv.remove('-loop')
         while True:

Modified: lucene/pylucene/trunk/test/test_ThaiAnalyzer.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/test/test_ThaiAnalyzer.py?rev=1497097&r1=1497096&r2=1497097&view=diff
==============================================================================
--- lucene/pylucene/trunk/test/test_ThaiAnalyzer.py (original)
+++ lucene/pylucene/trunk/test/test_ThaiAnalyzer.py Wed Jun 26 21:07:12 2013
@@ -116,7 +116,7 @@ class ThaiAnalyzerTestCase(BaseTokenStre
 
 
 if __name__ == "__main__":
-    lucene.initVM()
+    lucene.initVM(vmargs=['-Djava.awt.headless=true'])
     if ThaiWordFilter.DBBI_AVAILABLE:
         if '-loop' in sys.argv:
             sys.argv.remove('-loop')

Modified: lucene/pylucene/trunk/test/test_bug1564.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/test/test_bug1564.py?rev=1497097&r1=1497096&r2=1497097&view=diff
==============================================================================
--- lucene/pylucene/trunk/test/test_bug1564.py (original)
+++ lucene/pylucene/trunk/test/test_bug1564.py Wed Jun 26 21:07:12 2013
@@ -50,5 +50,5 @@ class Test_Bug1564(PyLuceneTestCase):
 
 
 if __name__ == '__main__':
-    lucene.initVM()
+    lucene.initVM(vmargs=['-Djava.awt.headless=true'])
     unittest.main()

Modified: lucene/pylucene/trunk/test/test_bug1763.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/test/test_bug1763.py?rev=1497097&r1=1497096&r2=1497097&view=diff
==============================================================================
--- lucene/pylucene/trunk/test/test_bug1763.py (original)
+++ lucene/pylucene/trunk/test/test_bug1763.py Wed Jun 26 21:07:12 2013
@@ -60,5 +60,5 @@ class Test_Bug1763(PyLuceneTestCase):
 
 
 if __name__ == '__main__':
-    lucene.initVM()
+    lucene.initVM(vmargs=['-Djava.awt.headless=true'])
     unittest.main()

Modified: lucene/pylucene/trunk/test/test_bug1842.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/test/test_bug1842.py?rev=1497097&r1=1497096&r2=1497097&view=diff
==============================================================================
--- lucene/pylucene/trunk/test/test_bug1842.py (original)
+++ lucene/pylucene/trunk/test/test_bug1842.py Wed Jun 26 21:07:12 2013
@@ -61,5 +61,5 @@ class Test_Bug1842(PyLuceneTestCase):
         self.assert_(freqs == [3, 1])
 
 if __name__ == '__main__':
-    lucene.initVM()
+    lucene.initVM(vmargs=['-Djava.awt.headless=true'])
     unittest.main()



Mime
View raw message