Skip to content

Commit b661629

Browse files
committed
Fix overriding injected test console
1 parent a1dd8d3 commit b661629

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

graalpython/com.oracle.graal.python.test/src/tests/graalos/test_graalos_sandbox_chat.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ def run_demo() -> None:
161161
def main(argv: list[str] | None = None) -> int:
162162
from rich.console import Console
163163
global console
164-
console = Console()
164+
if console is None:
165+
console = Console()
165166
parser = argparse.ArgumentParser()
166167
parser.add_argument("--demo", action="store_true", help="run the prepared demo script and exit")
167168
args = parser.parse_args(argv)

0 commit comments

Comments
 (0)