mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Make doctest pass by specifying the right encoding.
This commit is contained in:
parent
fb56d8f347
commit
b8b108f306
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue