This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients serhiy.storchaka
Date 2015-11-23.09:35:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1448271347.53.0.201659881218.issue25703@psf.upfronthosting.co.za>
In-reply-to
Content
When stdout or stderr (but not both) are redirected and PYTHONIOENCODING is not set, test_sys is failed in 2.7.

======================================================================
FAIL: test_43581 (test.test_sys.SysModuleTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/serhiy/py/cpython2.7-debug/Lib/test/test_sys.py", line 415, in test_43581
    self.assertTrue(sys.__stdout__.encoding == sys.__stderr__.encoding)
AssertionError: False is not true

----------------------------------------------------------------------

Can be reproduced by one of following commands:

$ ./python -m test.regrtest -v test_sys | cat
$ ./python -m test.regrtest -v test_sys 2>/dev/null

Proposed patch fixes the test.
History
Date User Action Args
2015-11-23 09:35:47serhiy.storchakasetrecipients: + serhiy.storchaka
2015-11-23 09:35:47serhiy.storchakasetmessageid: <1448271347.53.0.201659881218.issue25703@psf.upfronthosting.co.za>
2015-11-23 09:35:47serhiy.storchakalinkissue25703 messages
2015-11-23 09:35:47serhiy.storchakacreate