[issue1222] locale.format bug if thousand separator is space (french separator as example)

Mark Dickinson report at bugs.python.org
Wed Mar 18 16:50:29 CET 2009


Mark Dickinson <dickinsm at gmail.com> added the comment:

r70357 seems to have caused the sparc solaris py3k buildbot to start failing on 
test_locale:


======================================================================
FAIL: test_integer_grouping_and_padding (test.test_locale.TestNumberFormatting)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home2/buildbot/slave/3.x.loewis-sun/build/Lib/test/test_locale.py", line 181, 
in test_integer_grouping_and_padding
    out=('4%s200' % self.sep).rjust(10))
  File "/home2/buildbot/slave/3.x.loewis-sun/build/Lib/test/test_locale.py", line 143, 
in _test_format
    func=locale.format, **format_opts)
  File "/home2/buildbot/slave/3.x.loewis-sun/build/Lib/test/test_locale.py", line 139, 
in _test_formatfunc
    func(format, value, **format_opts), out)
AssertionError: '     4200' != '      4200'


Any idea what's going on here?

----------
nosy: +marketdickinson

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1222>
_______________________________________


More information about the Python-bugs-list mailing list