Re: mysqlIndexerTest.test_unicode fails for me

Ralf Schlatterbeck <[email protected]>
Newsgroups gmane.comp.bug-tracking.roundup.devel
Message-ID <[email protected]>
On Wed, Apr 29, 2020 at 07:56:39PM -0400, John P. Rouillard wrote:
> Config is:
> 
> platform linux -- Python 3.7.3, pytest-3.10.1, py-1.7.0, pluggy-0.8.0 -- /usr/bin/python3
> 
> Then only special thing I see is:
> 
>        # HACK: workaround mysql bug: http://bugs.mysql.com/bug.php?id=74901
>        #   needed for test_mysql.mysqlDBTest.testFilteringSpecialChars
>        sed -i -e 's/CREATE DATABASE \%s/CREATE DATABASE \%s COLLATE utf8_general_ci/' roundup/backends/back_mysql.py
> 
> Could that have something to do with it?

Yes, this looks like the default encoding of the database is changed
there.

I haven't investigated further, just wanted to point out a detail in my
findings: The problem *only* occurs with python2.7. The same tests are
ok with python3.7. So it probably isn't a problem with the mysql setup
in my installation?

Ralf
-- 
Dr. Ralf Schlatterbeck                  Tel:   +43/2243/26465-16
Open Source Consulting                  www:   http://www.runtux.com
Reichergasse 131, A-3411 Weidling       email: [email protected]
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.