X-Git-Url: http://git.scottworley.com/git-cache/blobdiff_plain/f580771a046e5aa9c2f8f3948213c8998a1e8cc3..a28f4bb75d2c9cc49b6e8d8d36ed53ff43d2a173:/test_git_cache.py?ds=inline diff --git a/test_git_cache.py b/test_git_cache.py index cc3cf35..e97a788 100644 --- a/test_git_cache.py +++ b/test_git_cache.py @@ -27,7 +27,7 @@ def _commit_file( filename: str, contents: str, commit_message: str) -> None: - with open(os.path.join(directory, filename), 'w') as f: + with open(os.path.join(directory, filename), 'w', encoding='utf-8') as f: f.write(contents) _git(directory, 'add', filename) _git(directory, 'commit', '-m', commit_message)