forked from pool/python-invocations
0fc91b5bd6
* invocations-py3.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-invocations?expand=0&rev=10
20 lines
657 B
Diff
20 lines
657 B
Diff
Index: invocations-1.4.0/tests/autodoc/base.py
|
|
===================================================================
|
|
--- invocations-1.4.0.orig/tests/autodoc/base.py
|
|
+++ invocations-1.4.0/tests/autodoc/base.py
|
|
@@ -1,4 +1,5 @@
|
|
from os.path import join, dirname
|
|
+import codecs
|
|
import re
|
|
import shutil
|
|
|
|
@@ -28,7 +29,7 @@ class autodoc_:
|
|
def setup_class(self):
|
|
# Build once, introspect many...for now
|
|
self.build_dir = _build()
|
|
- with open(join(self.build_dir, "api.html")) as fd:
|
|
+ with codecs.open(join(self.build_dir, "api.html"), 'r', encoding='utf-8') as fd:
|
|
self.api_docs = fd.read()
|
|
|
|
@classmethod
|