Skip to content

Commit 47fe4a8

Browse files
committed
Specify file encodings in test_renderer.py
This should make the test suite pass in CI.
1 parent 5f378ca commit 47fe4a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_renderer.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def app(test_params, app_params, make_app, shared_result):
3535
args, kwargs = app_params
3636
assert "srcdir" in kwargs
3737
os.makedirs(kwargs["srcdir"], exist_ok=True)
38-
(kwargs["srcdir"] / "conf.py").write_text("")
38+
(kwargs["srcdir"] / "conf.py").write_text("", encoding="ascii")
3939
app_ = make_app(*args, **kwargs)
4040
yield app_
4141

@@ -547,7 +547,7 @@ def get_matches(datafile):
547547
from xml.dom import minidom
548548

549549
argsstrings = []
550-
with open(os.path.join(os.path.dirname(__file__), "data", datafile)) as fid:
550+
with open(os.path.join(os.path.dirname(__file__), "data", datafile), encoding="utf-8") as fid:
551551
xml = fid.read()
552552
doc = minidom.parseString(xml)
553553

0 commit comments

Comments
 (0)