summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorHenry Schreiner <HenrySchreinerIII@gmail.com>2023-03-13 02:45:47 -0700
committerGitHub <noreply@github.com>2023-03-13 11:45:47 +0200
commit472e54eadb37ec9ae66a49711c3eb4c311c014e1 (patch)
tree1302caa23bb58b9b6aaa07921de73473e9e29abc /tests
parent61e7eb86ba4cd24e8e32ec3a08aeaa053c0792c8 (diff)
downloadwheel-git-472e54eadb37ec9ae66a49711c3eb4c311c014e1.tar.gz
Fixed EncodingWarning when PYTHONWARNDEFAULTENCODING is set (#512)
Diffstat (limited to 'tests')
-rw-r--r--tests/cli/test_convert.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/cli/test_convert.py b/tests/cli/test_convert.py
index 87ca6f6..4f26b23 100644
--- a/tests/cli/test_convert.py
+++ b/tests/cli/test_convert.py
@@ -10,7 +10,7 @@ from wheel.wheelfile import WHEEL_INFO_RE
def test_egg_re():
"""Make sure egg_info_re matches."""
egg_names_path = os.path.join(os.path.dirname(__file__), "eggnames.txt")
- with open(egg_names_path) as egg_names:
+ with open(egg_names_path, encoding="utf-8") as egg_names:
for line in egg_names:
line = line.strip()
if line: