diff options
| author | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2012-06-13 14:14:12 +0000 |
|---|---|---|
| committer | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2012-06-13 14:14:12 +0000 |
| commit | a011d013c6d3c9d524038e1d191eb0a198e37f9b (patch) | |
| tree | c9d555200a9782dd1c54bd9106aeaa563ebaa0da /docutils/test/test_error_reporting.py | |
| parent | 2824e5266e1b1a7ad6f41db63e7fdfa88e23c476 (diff) | |
| download | docutils-a011d013c6d3c9d524038e1d191eb0a198e37f9b.tar.gz | |
Fixup: more save implementation of binary data output under Python 3.
Prevent test error under Python 3. Add tests for FileOutput. Document.
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@7440 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/test/test_error_reporting.py')
| -rw-r--r-- | docutils/test/test_error_reporting.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docutils/test/test_error_reporting.py b/docutils/test/test_error_reporting.py index fd13356c0..989d04518 100644 --- a/docutils/test/test_error_reporting.py +++ b/docutils/test/test_error_reporting.py @@ -158,14 +158,14 @@ class ErrorStringTests(unittest.TestCase): # ----------------- # Stub: Buffer with 'strict' auto-conversion of input to byte string: -class BBuf(BytesIO, object): +class BBuf(BytesIO, object): # super class object required by Python <= 2.5 def write(self, data): if isinstance(data, unicode): data.encode('ascii', 'strict') super(BBuf, self).write(data) # Stub: Buffer expecting unicode string: -class UBuf(StringIO, object): +class UBuf(StringIO, object): # super class object required by Python <= 2.5 def write(self, data): # emulate Python 3 handling of stdout, stderr if isinstance(data, bytes): |
