Skip to content

Commit

Permalink
Avoid newline problems on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed Oct 23, 2024
1 parent 97af980 commit 9841171
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions setuptools/tests/test_core_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,9 @@ def _assert_roundtrip_message(metadata: str) -> None:
regenerated = buffer.getvalue()

raw_metadata = bytes(metadata, "utf-8")
# Normalise newlines to avoid test errors on Windows:
raw_metadata = b"\n".join(raw_metadata.splitlines())
regenerated = b"\n".join(regenerated.splitlines())
assert regenerated == raw_metadata


Expand Down

0 comments on commit 9841171

Please sign in to comment.