Message255142
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. |
|
Date |
User |
Action |
Args |
2015-11-23 09:35:47 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka |
2015-11-23 09:35:47 | serhiy.storchaka | set | messageid: <1448271347.53.0.201659881218.issue25703@psf.upfronthosting.co.za> |
2015-11-23 09:35:47 | serhiy.storchaka | link | issue25703 messages |
2015-11-23 09:35:47 | serhiy.storchaka | create | |
|