Skip to content

Commit

Permalink
fix test in binary mode windows, and OS would overwrite the line sepa…
Browse files Browse the repository at this point in the history
…rator
  • Loading branch information
DanielYang59 committed Dec 8, 2024
1 parent 6694cb2 commit 23c1c02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def test_warnings(self, extension):
if extension == ".txt":
assert f.readline() == content
else:
assert f.readline().decode("utf-8") == content
assert f.readline().decode("utf-8").rstrip() == content.rstrip()

# Implicit `mode` warning
with (
Expand Down

0 comments on commit 23c1c02

Please sign in to comment.