Skip to content

Commit 0a50a50

Browse files
committed
Fix newline
1 parent 9e92510 commit 0a50a50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_repl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def new_startup_env(*, code: str, histfile: str = ".pythonhist"):
7474
with os_helper.temp_dir() as tmpdir:
7575
filename = os.path.join(tmpdir, "pythonstartup.py")
7676
with open(filename, "w") as f:
77-
f.write(os.linesep.join(code.splitlines()))
77+
f.write('\n'.join(code.splitlines()))
7878
yield {"PYTHONSTARTUP": filename, "PYTHON_HISTORY": os.path.join(tmpdir, histfile)}
7979

8080

0 commit comments

Comments
 (0)