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 9e92510 commit 0a50a50Copy full SHA for 0a50a50
Lib/test/test_repl.py
@@ -74,7 +74,7 @@ def new_startup_env(*, code: str, histfile: str = ".pythonhist"):
74
with os_helper.temp_dir() as tmpdir:
75
filename = os.path.join(tmpdir, "pythonstartup.py")
76
with open(filename, "w") as f:
77
- f.write(os.linesep.join(code.splitlines()))
+ f.write('\n'.join(code.splitlines()))
78
yield {"PYTHONSTARTUP": filename, "PYTHON_HISTORY": os.path.join(tmpdir, histfile)}
79
80
0 commit comments