[Python-Dev] Re: [snake-farm] Re: [farm-report] Daily Snake Farm report

Guido van Rossum guido@python.org
Wed, 09 Oct 2002 14:17:51 -0400


> The first problem is in regrtest.  This exception causes regrtest to crash.
> 
> test_pyexpat
> Traceback (most recent call last):
>   File "./Lib/test/regrtest.py", line 877, in ?
>     main()
>   File "./Lib/test/regrtest.py", line 229, in main
>     ok = runtest(test, generate, verbose, quiet, testdir)
>   File "./Lib/test/regrtest.py", line 392, in runtest
>     output = cfp.getvalue()
>   File "/home/neal/build/python/dist/src/Lib/StringIO.py", line 195, in getvalue
>     self.buf += ''.join(self.buflist)
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xe1 in position 36: ordinal not in range(128)
> 
> I put a try/except around line 392 in regrtest and then had 2 failures:
> 
> test_pyexpat had no output (the unicode problem I guess) and test_rotor:
> 
> test test_rotor produced unexpected output:
> **********************************************************************
> *** mismatch between lines 2-3 of expected output and lines 2-3 of actual output:
> - '\xb5q\x90\xa3\xe8IT\xd1\x07\xda\x1d\xdc\xdf'
> + 'qqqqq\x90
> ...
> 
> Some unicode problem complaining about these 2 chars:  \xcb and \xe2
> which are printed as e umlaut and e circumflex.
> 
> Maybe this is just me again though?

I saw this too.  The fix was to add a setlocale() call to
test___all__.py.  Read my checkin comments and weep.

--Guido van Rossum (home page: http://www.python.org/~guido/)