Re: Test failure in Products.CMFPlone.tests.testUnicodeSplitter.TestQuery

"Jens W. Klein" <jens-/[email protected]>
Newsgroups gmane.comp.web.zope.plone.devel
Organization Klein & Partner KG
Message-ID <[email protected]>
Sorry for the noise, after digging through code I found that at least 
one of the following latin1 locales has to be configured in the system:

'en_US.ISO-8859-1', 'en_US.ISO8859-15', 'en_GB.ISO8859-15', 
'de_DE@euro', 'fr_FR@euro', 'nl_NL@euro'

If not the test fails.

I did a ``sudo locale-gen de_DE@euro`` and all is fine now.

Wouldnt it be better if theres an Error reported instaed of a failure?

regards Jens

On 2014-06-17 13:46, Jens W. Klein wrote:
> I have no idea why this test fails here at the moment. It does not make
> much sense to me.
>
> Is this a local setup problem on my relativly fresh installed Ubuntu
> 14.04 box?
>
> Any ideas appreciated!
>
> Failure in test testMixedModeQuery
> (Products.CMFPlone.tests.testUnicodeSplitter.TestQuery)
> Traceback (most recent call last):
>     File "/usr/lib/python2.7/unittest/case.py", line 331, in run
>       testMethod()
>     File
> "/home/jensens/workspace/buildout-coredev/src/Products.CMFPlone/Products/CMFPlone/tests/testUnicodeSplitter.py",
> line 212, in testMixedModeQuery
>       self.assertEqual(len(brains), 1)
>     File "/usr/lib/python2.7/unittest/case.py", line 515, in assertEqual
>       assertion_func(first, second, msg=msg)
>     File "/usr/lib/python2.7/unittest/case.py", line 508, in _baseAssertEqual
>       raise self.failureException(msg)
> AssertionError: 0 != 1
>
> regards Jens
>


-- 
Klein & Partner KG, member of BlueDynamics Alliance


------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.