Skip to content

Commit 30983a5

Browse files
committed
Rename new_pythonstartup_env to temp_pythonstartup
1 parent 02cfe94 commit 30983a5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/test/test_repl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def spawn_repl(*args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, custom=F
7070

7171

7272
@contextmanager
73-
def new_pythonstartup_env(*, code: str, histfile: str = ".pythonhist"):
73+
def temp_pythonstartup(*, code: str, histfile: str = ".pythonhist"):
7474
"""Create environment variables for a PYTHONSTARTUP script in a temporary directory."""
7575
with os_helper.temp_dir() as tmpdir:
7676
filename = os.path.join(tmpdir, "pythonstartup.py")
@@ -471,7 +471,7 @@ def test_quiet_mode(self):
471471
)
472472
def test_pythonstartup_failure(self, startup_code, expected_error):
473473
startup_env = self.enterContext(
474-
new_pythonstartup_env(code=startup_code, histfile=".asyncio_history"))
474+
temp_pythonstartup(code=startup_code, histfile=".asyncio_history"))
475475

476476
p = spawn_repl(
477477
"-qm", "asyncio",

0 commit comments

Comments
 (0)