diff options
author | Ćukasz Langa <lukasz@langa.pl> | 2016-11-28 23:55:09 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-28 23:55:09 -0800 |
commit | 61c28c83a3fb477f372507664f9f363a607c29da (patch) | |
tree | fd45b561eda6e507297c14fc6ab3f4d090bdb701 | |
parent | 8efe474321a04e17cc9905cffd604e387b768259 (diff) | |
download | cython-61c28c83a3fb477f372507664f9f363a607c29da.tar.gz |
Allow UTF8 in tests/run/annotate_html.pyx
Otherwise tests are failing on my box with a UnicodeDecodeError.
-rw-r--r-- | tests/run/annotate_html.pyx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/run/annotate_html.pyx b/tests/run/annotate_html.pyx index 88fde041c..765c2e13f 100644 --- a/tests/run/annotate_html.pyx +++ b/tests/run/annotate_html.pyx @@ -1,11 +1,12 @@ """ +>>> from codecs import open >>> import os.path as os_path >>> module_path = os_path.join(os_path.dirname(__file__), os_path.basename(__file__).split('.', 1)[0]) >>> assert module_path.endswith('annotate_html') >>> assert os_path.exists(module_path + '.c') or os_path.exists(module_path + '.cpp'), module_path >>> assert os_path.exists(module_path + '.html'), module_path ->>> with open(module_path + '.html') as html_file: +>>> with open(module_path + '.html', 'r', 'utf8') as html_file: ... html = html_file.read() >>> import re |