diff --git a/tests/test_replwrap.py b/tests/test_replwrap.py index 34431a1..6c512b8 100644 --- a/tests/test_replwrap.py +++ b/tests/test_replwrap.py @@ -136,6 +136,7 @@ def test_spawn_no_args(self) -> None: sys.executable, ">>> ", "import sys; sys.ps1={0!r}; sys.ps2={1!r}", + extra_env=dict(PYTHON_BASIC_REPL="1"), ) res = p.run_command("1+1") assert res.strip() == "2" @@ -149,6 +150,7 @@ def test_spawn_args(self) -> None: ">>> ", "import sys; sys.ps1={0!r}; sys.ps2={1!r}", args=["-i", "-c", "x=4+7"], + extra_env=dict(PYTHON_BASIC_REPL="1"), ) res = p.run_command("x-11") assert res.strip() == "0"