From 77fcd75b7da5c7d29e6489071e500087748d3e46 Mon Sep 17 00:00:00 2001 From: Alexander Schepanovski Date: Sat, 7 Dec 2019 13:16:42 +0100 Subject: [PATCH] test: use utf-8 in tmp_dir.gen() --- tests/dir_helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/dir_helpers.py b/tests/dir_helpers.py index f58c03ed8..336fd3474 100644 --- a/tests/dir_helpers.py +++ b/tests/dir_helpers.py @@ -64,7 +64,7 @@ class TmpDir(pathlib.Path): if is_py2 and isinstance(contents, str): path.write_bytes(contents) else: - path.write_text(contents) + path.write_text(contents, encoding="utf-8") def dvc_gen(self, struct, text="", commit=None): paths = self.gen(struct, text)