From ab8e82edafab18736695cdeda486bd7752a152ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Randy=20D=C3=B6ring?= <30527984+radoering@users.noreply.github.com> Date: Sat, 2 Mar 2024 06:49:27 +0100 Subject: [PATCH] Revert "Modify isort-metadata test to be invalid utf-8" --- tests/repositories/conftest.py | 3 ++- tests/repositories/fixtures/legacy/isort-metadata.html | 2 +- .../metadata/isort-metadata-4.3.4-py3-none-any.whl.metadata | 1 - 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/repositories/conftest.py b/tests/repositories/conftest.py index a6793e6ba58..1f9a6d11946 100644 --- a/tests/repositories/conftest.py +++ b/tests/repositories/conftest.py @@ -50,7 +50,8 @@ def metadata_mock(url: str, **__: Any) -> requests.Response: / "metadata" / posixpath.basename(url) ) - .read_bytes() + .read_text() + .encode() ) return response raise requests.HTTPError() diff --git a/tests/repositories/fixtures/legacy/isort-metadata.html b/tests/repositories/fixtures/legacy/isort-metadata.html index 4a72ba6863c..699a13e0192 100644 --- a/tests/repositories/fixtures/legacy/isort-metadata.html +++ b/tests/repositories/fixtures/legacy/isort-metadata.html @@ -6,7 +6,7 @@