From 3efb54fe5137ac4915d8d3e3e9fce7a2bc658f20 Mon Sep 17 00:00:00 2001 From: Anthony Kim <62267334+anthonykim1@users.noreply.github.com> Date: Tue, 28 Nov 2023 15:48:05 -0800 Subject: [PATCH] White space after REPL prompt (#22549) There should be white space after new REPL prompt that I override for purpose of shell integration. Resolves: #22548 --- pythonFiles/pythonrc.py | 2 +- pythonFiles/tests/test_shell_integration.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pythonFiles/pythonrc.py b/pythonFiles/pythonrc.py index a3d09ce9c11c..632db2749bd8 100644 --- a/pythonFiles/pythonrc.py +++ b/pythonFiles/pythonrc.py @@ -1,6 +1,6 @@ import sys -original_ps1 = ">>>" +original_ps1 = ">>> " class repl_hooks: diff --git a/pythonFiles/tests/test_shell_integration.py b/pythonFiles/tests/test_shell_integration.py index e45aeb60470e..c1359140438b 100644 --- a/pythonFiles/tests/test_shell_integration.py +++ b/pythonFiles/tests/test_shell_integration.py @@ -10,7 +10,7 @@ def test_decoration_success(): ps1.hooks.failure_flag = False result = str(ps1) - assert result == "\x1b]633;D;00\x07\x1b]633;A\x07>>>\x1b]633;B\x07\x1b]633;C\x07" + assert result == "\x1b]633;D;00\x07\x1b]633;A\x07>>> \x1b]633;B\x07\x1b]633;C\x07" def test_decoration_failure(): @@ -20,7 +20,7 @@ def test_decoration_failure(): ps1.hooks.failure_flag = True result = str(ps1) - assert result == "\x1b]633;D;10\x07\x1b]633;A\x07>>>\x1b]633;B\x07\x1b]633;C\x07" + assert result == "\x1b]633;D;10\x07\x1b]633;A\x07>>> \x1b]633;B\x07\x1b]633;C\x07" def test_displayhook_call():