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 564b5a8 commit 917366fCopy full SHA for 917366f
tests/test_toml_file.py
@@ -105,3 +105,12 @@ def test_default_eol_is_os_linesep(tmpdir):
105
linesep = os.linesep.encode()
106
with open(toml_path, "rb") as f:
107
assert f.read() == b"a = 1" + linesep + b"b = 2" + linesep
108
+
109
+def test_readwrite_eol_windows(tmpdir):
110
+ toml_path = str(tmpdir / "pyproject.toml")
111
+ doc = TOMLDocument()
112
+ doc.add("a", 1)
113
+ f = TOMLFile(toml_path)
114
+ f.write(doc)
115
+ readback = f.read()
116
+ assert doc.as_string() == readback.as_string()
0 commit comments