Skip to content

Commit 7f1a192

Browse files
committed
Fix tests on Windows
1 parent 1973559 commit 7f1a192

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/test_paths.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -956,6 +956,5 @@ def test_write_text_line_endings(tmp_pathplus: PathPlus):
956956
the_file.write_text('abcde\r\nfghlk\n\rmnopq', newline='\r\n')
957957
assert the_file.read_bytes() == b'abcde\r\r\nfghlk\r\n\rmnopq'
958958
# Check that no argument passed will change `\n` to `os.linesep`
959-
os_linesep_byte = bytes(os.linesep, encoding="ascii")
960959
the_file.write_text('abcde\nfghlk\n\rmnopq')
961-
assert the_file.read_bytes() == b'abcde' + os_linesep_byte + b'fghlk' + os_linesep_byte + b'\rmnopq'
960+
assert the_file.read_bytes() == b'abcde\nfghlk\n\rmnopq'

0 commit comments

Comments
 (0)