Make doctest pass by specifying the right encoding.
This commit is contained in:
parent
fb56d8f347
commit
b8b108f306
|
@ -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):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue