We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1973559 commit 7f1a192Copy full SHA for 7f1a192
tests/test_paths.py
@@ -956,6 +956,5 @@ def test_write_text_line_endings(tmp_pathplus: PathPlus):
956
the_file.write_text('abcde\r\nfghlk\n\rmnopq', newline='\r\n')
957
assert the_file.read_bytes() == b'abcde\r\r\nfghlk\r\n\rmnopq'
958
# Check that no argument passed will change `\n` to `os.linesep`
959
- os_linesep_byte = bytes(os.linesep, encoding="ascii")
960
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'
+ assert the_file.read_bytes() == b'abcde\nfghlk\n\rmnopq'
0 commit comments