From 79f146d489fd3b2c8d1771ff1c34cd0931f717e6 Mon Sep 17 00:00:00 2001 From: Mattias Ellert Date: Thu, 26 Mar 2026 11:47:54 +0100 Subject: [PATCH] Set PYTHON_BASIC_REPL="1" for two new test ValueError: Stdin Requested but not stdin handler available .../metakernel/replwrap.py:151: ValueError --- tests/test_replwrap.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_replwrap.py b/tests/test_replwrap.py index 34431a12..6c512b85 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"