2016-12-17 | Paul Boddie | raw files shortlog changelog graph | Test for the initialisation of the sys module. | |
tests/unicode.py (file) |
1.1 --- a/tests/unicode.py Sat Dec 17 00:31:59 2016 +0100 1.2 +++ b/tests/unicode.py Sat Dec 17 00:33:59 2016 +0100 1.3 @@ -71,6 +71,7 @@ 1.4 # Inspect and update the encoding of stdout. 1.5 # Note that su and us are byte strings and are not recoded. 1.6 1.7 +print sys.stdout # <posix.io.sysstream instance> 1.8 print sys.stdout.encoding # None 1.9 1.10 sys.stdout.encoding = "ISO-8859-1"