File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -94,10 +94,10 @@ def __str__(self):
9494 # For non-windows allow recent_command history.
9595 # fmt: off
9696 if sys .platform != "win32" :
97- result = "{soh}{command_line}{pre_execution }{execution_finished}{prompt_start}{stx}{prompt}{soh}{prompt_end}{stx}" .format ( # noqa: UP032
97+ result = "{soh}{pre_execution}{command_line }{execution_finished}{prompt_start}{stx}{prompt}{soh}{prompt_end}{stx}" .format ( # noqa: UP032
9898 soh = ShellIntegrationSequence .soh ,
99- command_line = ShellIntegrationSequence .command_line (get_last_command ()),
10099 pre_execution = ShellIntegrationSequence .pre_execution (),
100+ command_line = ShellIntegrationSequence .command_line (get_last_command ()),
101101 execution_finished = ShellIntegrationSequence .execution_finished (last_exit_code ),
102102 prompt_start = ShellIntegrationSequence .prompt_start (),
103103 stx = ShellIntegrationSequence .stx ,
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ def test_decoration_success():
2828 result = str (ps1 )
2929 assert (
3030 result
31- == "\x01 \x1b ]633;E;None \x07 \x1b ]633;C \x07 \x1b ]633;D;0\x07 \x1b ]633;A\x07 \x02 >>> \x01 \x1b ]633;B\x07 \x02 "
31+ == "\x01 \x1b ]633;C \x07 \x1b ]633;E;None \x07 \x1b ]633;D;0\x07 \x1b ]633;A\x07 \x02 >>> \x01 \x1b ]633;B\x07 \x02 "
3232 )
3333
3434
@@ -40,7 +40,7 @@ def test_decoration_failure():
4040 result = str (ps1 )
4141 assert (
4242 result
43- == "\x01 \x1b ]633;E;None \x07 \x1b ]633;C \x07 \x1b ]633;D;1\x07 \x1b ]633;A\x07 \x02 >>> \x01 \x1b ]633;B\x07 \x02 "
43+ == "\x01 \x1b ]633;C \x07 \x1b ]633;E;None \x07 \x1b ]633;D;1\x07 \x1b ]633;A\x07 \x02 >>> \x01 \x1b ]633;B\x07 \x02 "
4444 )
4545
4646
@@ -103,7 +103,7 @@ def test_prompt_survives_shadowed_builtins_under_pythonstartup():
103103 result = str (ps1 )
104104 assert (
105105 result
106- == "\x01 \x1b ]633;E;None \x07 \x1b ]633;C \x07 \x1b ]633;D;0\x07 \x1b ]633;A\x07 \x02 >>> \x01 \x1b ]633;B\x07 \x02 "
106+ == "\x01 \x1b ]633;C \x07 \x1b ]633;E;None \x07 \x1b ]633;D;0\x07 \x1b ]633;A\x07 \x02 >>> \x01 \x1b ]633;B\x07 \x02 "
107107 )
108108
109109
You can’t perform that action at this time.
0 commit comments