test_format fails (was: Re: RELEASED Python 2.4, alpha 1)

Irmen de Jong irmen at -nospam-remove-this-xs4all.nl
Tue Jul 13 20:50:34 EDT 2004


Martin v. Löwis wrote:
> Irmen de Jong wrote:
> 
>> I'm wondering where the u'1,000000' comes from... because when I type
>> on the interactive prompt:
>> Python 2.4a1 (#1, Jul  9 2004, 15:42:46)
>> [GCC 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk)] on linux2
>> Type "help", "copyright", "credits" or "license" for more information.
>>  >>> u'%f' % (1.0,)
>> u'1.000000'
>>  >>>
> 
> 
> Does the test also fail if you run it as "python Lib/test/regrtest.py 
> test_format"?

No it does work correctly in this case.

> If not, does it fail if you run it as
> python Lib/test/regrtest.py <all test cases that are executed before
> test_format> test_format? If yes, please try to eliminate all prior
> test cases that don't contribute to the failure, and report the
> minimum sequence of test cases needed to make it fail.

I'll try when I have some time for that...
As Michael Hudson pointed out it's probably a test that
messes with the locale settings and forgets to set them back,
or some such.

--Irmen



More information about the Python-list mailing list