mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
test: use utf-8 in tmp_dir.gen()
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user