[ python-Bugs-992078 ] test_format fails 2.4a1
SourceForge.net
noreply at sourceforge.net
Fri Jul 16 21:20:21 CEST 2004
Bugs item #992078, was opened at 2004-07-16 04:17
Message generated for change (Comment added) made by irmen
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=992078&group_id=5470
Category: Build
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: roadkill (dharma_roadkill)
Assigned to: Nobody/Anonymous (nobody)
Summary: test_format fails 2.4a1
Initial Comment:
uname -a
OSF1 pikachu.****.com V5.1 2650 alpha
(HP alpha box running Tru64 V5.1B)
Python-2.4a1
make test:
test test_format produced unexpected output:
******************************************
****************************
*** line 2 of actual output doesn't appear in expected
output after line 1:
+ u'%f' % (1.0,) == u'1,000000' != '1.000000'
******************************************
****************************
no fancy configure options
no locale env variables set
----------------------------------------------------------------------
Comment By: Irmen de Jong (irmen)
Date: 2004-07-16 21:20
Message:
Logged In: YES
user_id=129426
I can confirm this. It is caused by test__locale that is
executed before test_format (and also, test_unicode fails
likewise). See:
Not only test_format but also test_unicode fail on my
Mandrake 10 box.
My default locale is nl_NL. Behold:
[irmen at atlantis Python-2.4a1]$ cat testcases.in
test__locale
test_format
test_unicode
[irmen at atlantis Python-2.4a1]$ ./python Lib/test/regrtest.py
-f testcases.in
test__locale
test_format
test test_format produced unexpected output:
**********************************************************************
*** line 2 of actual output doesn't appear in expected
output after line 1:
+ u'%f' % (1.0,) == u'1,000000' != '1.000000'
**********************************************************************
test_unicode
test test_unicode failed -- Traceback (most recent call last):
File
"/home/irmen/BUILD/Python-2.4a1/Lib/test/test_unicode.py",
line 358, in test_formatt ing
string_tests.MixinStrUnicodeUserStringTest.test_formatting(self)
File
"/home/irmen/BUILD/Python-2.4a1/Lib/test/string_tests.py",
line 615, in test_formatt ing
self.checkequal('0042.00', '%07.2f', '__mod__', 42)
File
"/home/irmen/BUILD/Python-2.4a1/Lib/test/string_tests.py",
line 56, in checkequal
realresult
AssertionError: u'0042.00' != u'0042,00'
1 test OK.
2 tests failed:
test_format test_unicode
[irmen at atlantis Python-2.4a1]$
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=992078&group_id=5470
More information about the Python-bugs-list
mailing list