Commits

Alex Grönholm committed 8460248

Use sys.__stdout__ instead of sys.stdout since the latter will be a StringIO instance during unit tests

Comments (0)

Files changed (1)

scripttest/__init__.py

 
 __all__ = ['TestFileEnvironment']
 
-console_encoding = sys.stdout.encoding
+console_encoding = sys.__stdout__.encoding
 
 if sys.platform == 'win32':
     def clean_environ(e):