Skip to content

Commit 9dde82b

Browse files
committed
tests/cmdline: Update REPL test expectations after mode switching fix.
Remove extra blank prompt lines that were appearing after paste mode due to the previous buggy behavior. The mode switching fix corrects the prompt handling. Signed-off-by: Andrew Leech <[email protected]>
1 parent ae04ee0 commit 9dde82b

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

tests/cmdline/repl_autocomplete_underscore.py.exp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ paste mode; Ctrl-C to cancel, Ctrl-D to finish
2727
=== return 99
2828
===
2929
===
30-
>>>
3130
>>> # Paste executed
3231
>>>
3332
>>> # Create an instance

tests/cmdline/repl_paste.py.exp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ paste mode; Ctrl-C to cancel, Ctrl-D to finish
1212
===
1313
Hello from paste mode!
1414
>>>
15-
>>>
1615
>>> # Paste mode with multiple indentation levels
1716
>>>
1817
paste mode; Ctrl-C to cancel, Ctrl-D to finish
@@ -35,7 +34,6 @@ Even: 2
3534
Odd: 3
3635
Even: 4
3736
>>>
38-
>>>
3937
>>> # Paste mode with blank lines
4038
>>>
4139
paste mode; Ctrl-C to cancel, Ctrl-D to finish
@@ -54,7 +52,6 @@ First line
5452
After blank line
5553
After two blank lines
5654
>>>
57-
>>>
5855
>>> # Paste mode with class definition and multiple methods
5956
>>>
6057
paste mode; Ctrl-C to cancel, Ctrl-D to finish
@@ -79,7 +76,6 @@ Value is: 21
7976
Doubled: 42
8077
Value is: 42
8178
>>>
82-
>>>
8379
>>> # Paste mode with exception handling
8480
>>>
8581
paste mode; Ctrl-C to cancel, Ctrl-D to finish
@@ -94,7 +90,6 @@ paste mode; Ctrl-C to cancel, Ctrl-D to finish
9490
Caught division by zero
9591
Finally block executed
9692
>>>
97-
>>>
9893
>>> # Cancel paste mode with Ctrl-C
9994
>>>
10095
paste mode; Ctrl-C to cancel, Ctrl-D to finish
@@ -118,7 +113,6 @@ Traceback (most recent call last):
118113
File "<stdin>", line 2
119114
SyntaxError: invalid syntax
120115
>>>
121-
>>>
122116
>>> # Paste mode with runtime error
123117
>>>
124118
paste mode; Ctrl-C to cancel, Ctrl-D to finish
@@ -133,7 +127,6 @@ Traceback (most recent call last):
133127
File "<stdin>", line 3, in will_error
134128
NameError: name 'undefined_variable' isn't defined
135129
>>>
136-
>>>
137130
>>> # Final test to show REPL is still functioning
138131
>>> 1 + 2 + 3
139132
6

0 commit comments

Comments
 (0)