A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-April/014257.html below:

[Python-Dev] 2.1c1 "make test" failures on SGI Irix

[Python-Dev] 2.1c1 "make test" failures on SGI IrixMark 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



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4