summaryrefslogtreecommitdiff
path: root/tests/test_application.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_application.py')
-rw-r--r--tests/test_application.py34
1 files changed, 0 insertions, 34 deletions
diff --git a/tests/test_application.py b/tests/test_application.py
index 00223350b..e83e2b4de 100644
--- a/tests/test_application.py
+++ b/tests/test_application.py
@@ -49,40 +49,6 @@ def test_emit_with_nonascii_name_node(app, status, warning):
app.emit('my_event', node)
-def test_output(app, status, warning):
- # info with newline
- status.truncate(0) # __init__ writes to status
- status.seek(0)
- app.info("Nothing here...")
- assert status.getvalue() == "Nothing here...\n"
- # info without newline
- status.truncate(0)
- status.seek(0)
- app.info("Nothing here...", True)
- assert status.getvalue() == "Nothing here..."
-
- # warning
- old_count = app._warncount
- app.warn("Bad news!")
- assert strip_escseq(warning.getvalue()) == "WARNING: Bad news!\n"
- assert app._warncount == old_count + 1
-
-
-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"
-
-
def test_extensions(app, status, warning):
app.setup_extension('shutil')
assert strip_escseq(warning.getvalue()).startswith("WARNING: extension 'shutil'")