Skip to content

Commit 9e92510

Browse files
committed
Use default histfile
1 parent ce03cce commit 9e92510

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_repl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ def test_pythonstartup_success(self):
248248
# errors based on https://github.com/python/cpython/issues/137576
249249
# case 1: error in user input, but PYTHONSTARTUP is fine
250250
startup_code = "print('notice from pythonstartup')"
251-
with new_startup_env(code=startup_code, histfile=".pythonhist") as startup_env:
251+
with new_startup_env(code=startup_code) as startup_env:
252252
# -q to suppress noise
253253
p = spawn_repl("-q", env=os.environ | startup_env, isolated=False)
254254
p.stdin.write("1/0")
@@ -269,7 +269,7 @@ def test_pythonstartup_success(self):
269269
def test_pythonstartup_failure(self):
270270
# case 2: error in PYTHONSTARTUP triggered by user input
271271
startup_code = "def foo():\n 1/0\n"
272-
with new_startup_env(code=startup_code, histfile=".asyncio_history") as startup_env:
272+
with new_startup_env(code=startup_code) as startup_env:
273273
# -q to suppress noise
274274
p = spawn_repl("-q", env=os.environ | startup_env, isolated=False)
275275
p.stdin.write("foo()")

0 commit comments

Comments
 (0)