Skip to content

Commit

Permalink
Fix EncodingWarning in test_build_meta
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed Apr 22, 2024
1 parent ab22f5c commit 888a1f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setuptools/tests/test_build_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def run():
# to obtain a distribution object first, and then run the distutils
# commands later, because these files will be removed in the meantime.
with open('world.py', 'w') as f:
with open('world.py', 'w', encoding="utf-8") as f:
f.write('x = 42')
try:
Expand Down

0 comments on commit 888a1f0

Please sign in to comment.