From 888a1f0bda7eb178fcfbc816ab12d0cb016fd306 Mon Sep 17 00:00:00 2001 From: Anderson Bravalheri Date: Mon, 22 Apr 2024 15:56:28 +0100 Subject: [PATCH] Fix EncodingWarning in test_build_meta --- setuptools/tests/test_build_meta.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setuptools/tests/test_build_meta.py b/setuptools/tests/test_build_meta.py index 43830feb770..cc996b42556 100644 --- a/setuptools/tests/test_build_meta.py +++ b/setuptools/tests/test_build_meta.py @@ -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: