summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorCollin Winter <collinw@gmail.com>2007-07-20 18:08:03 (GMT)
committerCollin Winter <collinw@gmail.com>2007-07-20 18:08:03 (GMT)
commitb8b108f306bebf90d386f6c9d14c552f62a73746 (patch)
treea1e59d9f9e592acb8956ed9d2238cf44a2a311d4 /Lib
parentfb56d8f347932b181524dd0b5862a9bf1da317a2 (diff)
downloadcpython-b8b108f306bebf90d386f6c9d14c552f62a73746.zip
cpython-b8b108f306bebf90d386f6c9d14c552f62a73746.tar.gz
cpython-b8b108f306bebf90d386f6c9d14c552f62a73746.tar.bz2
Make doctest pass by specifying the right encoding.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/doctest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/doctest.py b/Lib/doctest.py
index bd7a918..3f139fc 100644
--- a/Lib/doctest.py
+++ b/Lib/doctest.py
@@ -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):
"""