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 @@