test: use utf-8 in tmp_dir.gen()

This commit is contained in:
Alexander Schepanovski
2019-12-07 13:16:42 +01:00
parent 42096c5bfc
commit 77fcd75b7d
+1 -1
View File
@@ -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)