summaryrefslogtreecommitdiff
path: root/tests/test_basic_api.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-09-20 12:11:53 +0200
committerGeorg Brandl <georg@python.org>2014-09-20 12:11:53 +0200
commitccc25791eb7bd31d2c90ff52a747973615e087e2 (patch)
tree1693af68783b350096922919f52fe26f5b1ff9c2 /tests/test_basic_api.py
parent5f4ac79b49e93998ba827e0073ea2b0de95b6593 (diff)
downloadpygments-ccc25791eb7bd31d2c90ff52a747973615e087e2.tar.gz
Sort out Unicode output issues with RTF and image formatters.
Diffstat (limited to 'tests/test_basic_api.py')
-rw-r--r--tests/test_basic_api.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_basic_api.py b/tests/test_basic_api.py
index 6069f97c..37d170aa 100644
--- a/tests/test_basic_api.py
+++ b/tests/test_basic_api.py
@@ -217,7 +217,7 @@ def test_formatter_unicode_handling():
if formatter.name != 'Raw tokens':
out = format(tokens, inst)
if formatter.unicodeoutput:
- assert type(out) is text_type
+ assert type(out) is text_type, '%s: %r' % (formatter, out)
inst = formatter(encoding='utf-8')
out = format(tokens, inst)