[Python-Dev] test_sys failures

Nick Coghlan ncoghlan at gmail.com
Tue Jan 8 12:09:30 CET 2008


Guido van Rossum wrote:
> No answers yet, but a clue, and anyone on OSX should now be able to
> reproduce this (with 2.5, 2.6 or 3.0) as follows:
> 
>   ./python ./Lib/test/test_sys.py | cat
> 
> That is, the problem happens when stdout is redirected to a pipe (or a file).

Redirecting stdout also fails for both the trunk and the py3k branch for 
me on Ubuntu. If I redirected stderr as well then the tests worked again.

Given that a pipe/file and the console very likely *do* have different 
encodings, maybe the test is just wrong?

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://www.boredomandlaziness.org


More information about the Python-Dev mailing list