[Python-Dev] [Python-checkins] cpython (3.2): Skip test_getsetlocale_issue1813() on Fedora due to setlocale() bug.

Stefan Krah stefan at bytereef.org
Tue Aug 2 10:48:07 CEST 2011


R. David Murray <rdmurray at bitdance.com> wrote:
> On Tue, 02 Aug 2011 01:22:03 +0200, stefan.krah <python-checkins at python.org> wrote:
> >   Skip test_getsetlocale_issue1813() on Fedora due to setlocale() bug.
> > See: https://bugzilla.redhat.com/show_bug.cgi?id=726536
> > +    @unittest.skipIf(linux_distribution()[0] == 'Fedora', "Fedora setlocale() "
> > +                     "bug: https://bugzilla.redhat.com/show_bug.cgi?id=726536")
> 
> Why 'Fedora'?  This bug affects more than just Fedora:  as I reported on
> the issue, I'm seeing it on Gentoo as well.  (Also, including the issue
> number in the commit message is helpful).
> 
> Note that since the bug report says that "Gentoo has been including this
> fix for two years", the fact that it is failing on my Gentoo system
> would seem to indicate that something about the fix is not right.
> 
> So, I'm not sure this skip is even valid.  I'm not sure we've finished
> diagnosing the bug.

Fedora's glibc has an additional issue with the Turkish 'I' that can
be reproduced by the simple C program in:

  https://bugzilla.redhat.com/show_bug.cgi?id=726536


I disabled the test specifically on Fedora because it a) seems to be the
only Linux buildbot where this test fails and b) this does not seem
like a Python issue to me.


Since you say that the fix for issue #1813 might not be right, do
you think that the fix should work around this glibc issue?


> If there are any helpful tests I can run on Gentoo, please let me know.

Yes, you could run the small test program. If you get the same results
as on Fedora, then I wonder why the Gentoo buildbots are green.

Do they have tr_TR and tr_TR.iso88599 installed? 


Stefan Krah




More information about the Python-Dev mailing list