Skip to content

Commit

Permalink
Modify isort-metadata test to be invalid utf-8
Browse files Browse the repository at this point in the history
This ensures that it remains bytes the whole way through.
  • Loading branch information
thatch authored and radoering committed Mar 2, 2024
1 parent cf1d0c5 commit 907ce93
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions tests/repositories/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ def metadata_mock(url: str, **__: Any) -> requests.Response:
/ "metadata"
/ posixpath.basename(url)
)
.read_text()
.encode()
.read_bytes()
)
return response
raise requests.HTTPError()
Expand Down
2 changes: 1 addition & 1 deletion tests/repositories/fixtures/legacy/isort-metadata.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<body>
<h1>Links for isort</h1>
<a href="https://files.pythonhosted.org/packages/1f/2c/non-existant/isort-metadata-4.3.4-py3-none-any.whl#sha256=1153601da39a25b14ddc54955dbbacbb6b2d19135386699e2ad58517953b34af"
data-dist-info-metadata="sha256=e360bf0ed8a06390513d50dd5b7e9d635c789853a93b84163f9de4ae0647580c">isort-metadata-4.3.4-py3-none-any.whl</a><br/>
data-dist-info-metadata="sha256=032d41ef93ff20e432cdc1f9cea7918458ae93ddbfea63d7d11b1eaf1915c430">isort-metadata-4.3.4-py3-none-any.whl</a><br/>
</body>
</html>
<!--SERIAL 3575149-->
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ 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"

0 comments on commit 907ce93

Please sign in to comment.