[Python-Dev] 2.1c1 "make test" failures on SGI Irix
Mark Favas
m.favas@per.dem.csiro.au
Sun, 15 Apr 2001 13:37:35 +0800
Guido van Rossum wrote:
>
> > Tests still failing under Irix:
> >
> > python Lib/test/test_locale.py
> > '%f' % 1024 =? '1,024.000000' ...
> > Traceback (most recent call last):
> > File "Lib/test/test_locale.py", line 29, in ?
> > testformat("%f", 1024, grouping=1, output='1,024.000000')
> > File "Lib/test/test_locale.py", line 18, in testformat
> > result = locale.format(formatstr, value, grouping = grouping)
> > File "/var/tmp/mark/src/Lib/locale.py", line 137, in format
> > fields[0],seps=_group(fields[0])
> > ValueError: unpack sequence of wrong size
>
> Can you find out what at this point the value of
> localeconv()['grouping'] is? The only way this can happen, I think,
> is for that to be a false value -- then _group() returns a single
> string value instead of a tuple. This seems to be a bug in _group()
> -- the only place that uses it (format()) always assumes it returns a
> tuple of two elements.
localeconv()['grouping'] is "[]" at this point...
--
Mark Favas - m.favas@per.dem.csiro.au
CSIRO, Private Bag No 5, Wembley, Western Australia 6913, AUSTRALIA