upgpkg: ocaml-topkg 1.0.5-2
[arch-packages.git] / python-nose / repos / extra-any / python-nose-readunicode.patch
blob61d4cd23d85caa29bbd7a654ab7595279ad4ee3d
1 diff -up nose-1.3.7/nose/plugins/doctests.py.readunicode nose-1.3.7/nose/plugins/doctests.py
2 --- nose-1.3.7/nose/plugins/doctests.py.readunicode 2015-04-04 02:52:52.000000000 -0600
3 +++ nose-1.3.7/nose/plugins/doctests.py 2016-11-15 14:24:54.298239018 -0700
4 @@ -49,6 +49,7 @@ test.
5 """
6 from __future__ import generators
8 +import codecs
9 import logging
10 import os
11 import sys
12 @@ -259,7 +260,7 @@ class Doctest(Plugin):
13 """
14 if self.extension and anyp(filename.endswith, self.extension):
15 name = os.path.basename(filename)
16 - dh = open(filename)
17 + dh = codecs.open(filename, encoding='utf-8')
18 try:
19 doc = dh.read()
20 finally: