diff options
author | Leo <thinkabit.ukim@gmail.com> | 2020-03-16 02:48:47 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2020-04-02 01:43:47 +0000 |
commit | aad2afe051973fa7fd6f4f9b83703c09445ff17c (patch) | |
tree | 4266144bb0c3984f784b0dd910d33fa98a72c353 /community/py3-nose/fix-doctests-unicode.patch | |
parent | aad758e364da9a69d0d519b619cc6eb2c7d150f8 (diff) | |
download | aports-aad2afe051973fa7fd6f4f9b83703c09445ff17c.tar.bz2 aports-aad2afe051973fa7fd6f4f9b83703c09445ff17c.tar.xz |
community/py3-*: move from main/ and modernize
Diffstat (limited to 'community/py3-nose/fix-doctests-unicode.patch')
-rw-r--r-- | community/py3-nose/fix-doctests-unicode.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/community/py3-nose/fix-doctests-unicode.patch b/community/py3-nose/fix-doctests-unicode.patch new file mode 100644 index 0000000000..a788ed9c43 --- /dev/null +++ b/community/py3-nose/fix-doctests-unicode.patch @@ -0,0 +1,21 @@ +Patch-Source: https://src.fedoraproject.org/cgit/rpms/python-nose.git/tree/python-nose-coverage4.patch + +--- a/nose/plugins/doctests.py ++++ b/nose/plugins/doctests.py +@@ -49,6 +49,7 @@ test. + """ + from __future__ import generators + ++import codecs + import logging + import os + import sys +@@ -259,7 +260,7 @@ class Doctest(Plugin): + """ + if self.extension and anyp(filename.endswith, self.extension): + name = os.path.basename(filename) +- dh = open(filename) ++ dh = codecs.open(filename, encoding='utf-8') + try: + doc = dh.read() + finally: |