summaryrefslogtreecommitdiff
path: root/tests/test_application.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2016-12-23 11:58:11 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2017-01-02 12:59:50 +0900
commitaa65a194668bb32f9f2be8189a7302136c119826 (patch)
treeb9f06dc93fabea2772ce9750a29887fe669a472c /tests/test_application.py
parentad871e5a48ecf1b20506a0b90d689f50e241111f (diff)
downloadsphinx-git-aa65a194668bb32f9f2be8189a7302136c119826.tar.gz
Add sphinx.util.logging.SafeEncodingWriter
Diffstat (limited to 'tests/test_application.py')
-rw-r--r--tests/test_application.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/tests/test_application.py b/tests/test_application.py
index 1580b8036..1f4a30d97 100644
--- a/tests/test_application.py
+++ b/tests/test_application.py
@@ -8,7 +8,6 @@
:copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
-import codecs
from docutils import nodes
@@ -69,22 +68,6 @@ def test_output(app, status, warning):
@with_app()
-def test_output_with_unencodable_char(app, status, warning):
-
- class StreamWriter(codecs.StreamWriter):
- def write(self, object):
- self.stream.write(object.encode('cp1252').decode('cp1252'))
-
- app._status = StreamWriter(status)
-
- # info with UnicodeEncodeError
- status.truncate(0)
- status.seek(0)
- app.info(u"unicode \u206d...")
- assert status.getvalue() == "unicode ?...\n"
-
-
-@with_app()
def test_extensions(app, status, warning):
app.setup_extension('shutil')
assert strip_escseq(warning.getvalue()).startswith("WARNING: extension 'shutil'")