Kaydet (Commit) b8b108f3 authored tarafından Collin Winter's avatar Collin Winter

Make doctest pass by specifying the right encoding.

üst fb56d8f3
......@@ -210,7 +210,7 @@ def _load_testfile(filename, package, module_relative):
if hasattr(package, '__loader__'):
if hasattr(package.__loader__, 'get_data'):
return package.__loader__.get_data(filename), filename
return open(filename).read(), filename
return open(filename, encoding="utf-8").read(), filename
def _indent(s, indent=4):
"""
......
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