Skip to content

Commit

Permalink
In support, specify encoding. Ref #232.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Mar 2, 2024
1 parent bdbe5e3 commit 5365535
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distutils/tests/support.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def write_file(self, path, content='xxx'):
path can be a string or a sequence.
"""
pathlib.Path(*always_iterable(path)).write_text(content)
pathlib.Path(*always_iterable(path)).write_text(content, encoding='utf-8')

def create_dist(self, pkg_name='foo', **kw):
"""Will generate a test environment.
Expand Down

0 comments on commit 5365535

Please sign in to comment.