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

Links for isort

isort-metadata-4.3.4-py3-none-any.whl
+ data-dist-info-metadata="sha256=e360bf0ed8a06390513d50dd5b7e9d635c789853a93b84163f9de4ae0647580c">isort-metadata-4.3.4-py3-none-any.whl
diff --git a/tests/repositories/fixtures/metadata/isort-metadata-4.3.4-py3-none-any.whl.metadata b/tests/repositories/fixtures/metadata/isort-metadata-4.3.4-py3-none-any.whl.metadata index 376f96c5aa8..bab8d017156 100644 --- a/tests/repositories/fixtures/metadata/isort-metadata-4.3.4-py3-none-any.whl.metadata +++ b/tests/repositories/fixtures/metadata/isort-metadata-4.3.4-py3-none-any.whl.metadata @@ -26,4 +26,3 @@ Classifier: Topic :: Software Development :: Libraries Classifier: Topic :: Utilities Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.* Requires-Dist: futures; python_version=="2.7" -€ \ No newline at end of file