Make doctest pass by specifying the right encoding.

This commit is contained in:
Collin Winter 2007-07-20 18:08:03 +00:00
parent fb56d8f347
commit b8b108f306
1 changed files with 1 additions and 1 deletions

View File

@ -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):
"""