lucene-pylucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From va...@apache.org
Subject svn commit: r944954 - in /lucene/pylucene/branches/branch_3x/test: test_ICUFoldingFilter.py test_ICUNormalizer2Filter.py test_ICUTransformFilter.py
Date Mon, 17 May 2010 02:13:26 GMT
Author: vajda
Date: Mon May 17 02:13:26 2010
New Revision: 944954

URL: http://svn.apache.org/viewvc?rev=944954&view=rev
Log:
more about failed icu imports

Modified:
    lucene/pylucene/branches/branch_3x/test/test_ICUFoldingFilter.py
    lucene/pylucene/branches/branch_3x/test/test_ICUNormalizer2Filter.py
    lucene/pylucene/branches/branch_3x/test/test_ICUTransformFilter.py

Modified: lucene/pylucene/branches/branch_3x/test/test_ICUFoldingFilter.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/branches/branch_3x/test/test_ICUFoldingFilter.py?rev=944954&r1=944953&r2=944954&view=diff
==============================================================================
--- lucene/pylucene/branches/branch_3x/test/test_ICUFoldingFilter.py (original)
+++ lucene/pylucene/branches/branch_3x/test/test_ICUFoldingFilter.py Mon May 17 02:13:26 2010
@@ -18,7 +18,6 @@
 
 try:
     from icu import Normalizer2, UNormalizationMode2
-    from lucene.ICUFoldingFilter import ICUFoldingFilter
 except ImportError, e:
     pass
 
@@ -32,6 +31,8 @@ class TestICUFoldingFilter(BaseTokenStre
 
     def testDefaults(self):
 
+        from lucene.ICUFoldingFilter import ICUFoldingFilter
+
         class _analyzer(PythonAnalyzer):
             def tokenStream(_self, fieldName, reader):
                 return ICUFoldingFilter(WhitespaceTokenizer(Version.LUCENE_CURRENT, reader))

Modified: lucene/pylucene/branches/branch_3x/test/test_ICUNormalizer2Filter.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/branches/branch_3x/test/test_ICUNormalizer2Filter.py?rev=944954&r1=944953&r2=944954&view=diff
==============================================================================
--- lucene/pylucene/branches/branch_3x/test/test_ICUNormalizer2Filter.py (original)
+++ lucene/pylucene/branches/branch_3x/test/test_ICUNormalizer2Filter.py Mon May 17 02:13:26
2010
@@ -18,7 +18,6 @@
 
 try:
     from icu import Normalizer2, UNormalizationMode2
-    from lucene.ICUNormalizer2Filter import ICUNormalizer2Filter
 except ImportError, e:
     pass
 
@@ -32,6 +31,8 @@ class TestICUNormalizer2Filter(BaseToken
 
     def testDefaults(self):
 
+        from lucene.ICUNormalizer2Filter import ICUNormalizer2Filter
+
         class analyzer(PythonAnalyzer):
             def tokenStream(_self, fieldName, reader):
                 return ICUNormalizer2Filter(WhitespaceTokenizer(Version.LUCENE_CURRENT, reader))
@@ -60,6 +61,8 @@ class TestICUNormalizer2Filter(BaseToken
   
     def testAlternate(self):
 
+        from lucene.ICUNormalizer2Filter import ICUNormalizer2Filter
+
         class analyzer(PythonAnalyzer):
             # specify nfc with decompose to get nfd
             def tokenStream(_self, fieldName, reader):

Modified: lucene/pylucene/branches/branch_3x/test/test_ICUTransformFilter.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/branches/branch_3x/test/test_ICUTransformFilter.py?rev=944954&r1=944953&r2=944954&view=diff
==============================================================================
--- lucene/pylucene/branches/branch_3x/test/test_ICUTransformFilter.py (original)
+++ lucene/pylucene/branches/branch_3x/test/test_ICUTransformFilter.py Mon May 17 02:13:26
2010
@@ -18,7 +18,6 @@
 
 try:
     from icu import Transliterator, UTransDirection
-    from lucene.ICUTransformFilter import ICUTransformFilter
 except ImportError, e:
     pass
 
@@ -32,6 +31,7 @@ class TestICUTransformFilter(BaseTokenSt
   
     def _checkToken(self, transform, input, expected):
 
+        from lucene.ICUTransformFilter import ICUTransformFilter
         ts = ICUTransformFilter(KeywordTokenizer(StringReader(input)),
                                 transform)
         self._assertTokenStreamContents(ts, [ expected ])



Mime
View raw message