Commit 91818e7a authored by Robert Bradshaw's avatar Robert Bradshaw Committed by GitHub

Merge pull request #1537 from ambv/annotate_html_utf8

Allow UTF8 in tests/run/annotate_html.pyx
parents 8efe4743 61c28c83
"""
>>> 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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment