r47226 - add a comment about nativestringio
hawkowl-TA+aISz0psMTMxyoc4vAAJOcrHinNvQL0E9HWUfgJXw@public.gmane.org Wed, 13 Apr 2016 23:35:15 -0600 (MDT)
| Newsgroups | gmane.comp.python.twisted.commits |
|---|---|
| Message-ID | <[email protected]> |
Author: hawkowl
Date: Wed Apr 13 23:35:11 2016
New Revision: 47226
Modified:
branches/t-names-authority-py3-8259-3/twisted/names/test/test_examples.py
Log:
add a comment about nativestringio
Modified: branches/t-names-authority-py3-8259-3/twisted/names/test/test_examples.py
==============================================================================
--- branches/t-names-authority-py3-8259-3/twisted/names/test/test_examples.py (original)
+++ branches/t-names-authority-py3-8259-3/twisted/names/test/test_examples.py Wed Apr 13 23:35:11 2016
@@ -38,6 +38,7 @@
self.originalPath = sys.path[:]
self.originalModules = sys.modules.copy()
+ # Python usually expects native strs to be written to sys.stdout/stderr
self.fakeErr = NativeStringIO()
self.patch(sys, 'stderr', self.fakeErr)
self.fakeOut = NativeStringIO()