Skip to content

Commit cc624d1

Browse files
committed
Simplify new_pythonstartup_env
1 parent 125efa6 commit cc624d1

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_pythonstartup_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('\n'.join(code.splitlines()))
77+
f.write(code)
7878
yield {
7979
"PYTHONSTARTUP": filename,
8080
"PYTHON_HISTORY": os.path.join(tmpdir, histfile)

0 commit comments

Comments
 (0)