[Checkins] SVN: zope.index/trunk/src/zope/index/text/tests/test_htmlsplitter.py Old test definition was hiding actual test.
Chris McDonough
chrism at plope.com
Sun Aug 2 17:10:44 EDT 2009
Log message for revision 102446:
Old test definition was hiding actual test.
Changed:
U zope.index/trunk/src/zope/index/text/tests/test_htmlsplitter.py
-=-
Modified: zope.index/trunk/src/zope/index/text/tests/test_htmlsplitter.py
===================================================================
--- zope.index/trunk/src/zope/index/text/tests/test_htmlsplitter.py 2009-08-02 20:58:12 UTC (rev 102445)
+++ zope.index/trunk/src/zope/index/text/tests/test_htmlsplitter.py 2009-08-02 21:10:43 UTC (rev 102446)
@@ -99,26 +99,6 @@
self.assertEqual(splitter.processGlob(['abc?def hij*klm nop* qrs?']),
['abc?def', 'hij*klm', 'nop*', 'qrs?'])
- def test_process_w_locale_awareness(self):
- import locale
- import sys
- self._old_locale = locale.setlocale(locale.LC_ALL)
- # set German locale
- try:
- if sys.platform == 'win32':
- locale.setlocale(locale.LC_ALL, 'German_Germany.1252')
- else:
- locale.setlocale(locale.LC_ALL, 'de_DE.ISO8859-1')
- except locale.Error:
- return # This test doesn't work here :-(
- expected = ['m\xfclltonne', 'waschb\xe4r',
- 'beh\xf6rde', '\xfcberflieger']
- words = [" ".join(expected)]
- words = Splitter().process(words)
- self.assertEqual(words, expected)
- words = HTMLWordSplitter().process(words)
- self.assertEqual(words, expected)
-
def test_suite():
return unittest.TestSuite((
unittest.makeSuite(HTMLWordSplitterTests),
More information about the Checkins
mailing list