Skip to content

Commit 4cae1c2

Browse files
committed
fix: the tests
Signed-off-by: yihong0618 <[email protected]>
1 parent 2babb7d commit 4cae1c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_pydoc/test_pydoc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2189,7 +2189,7 @@ def test_interact_empty_line_continues(self):
21892189
# gh-138568: test pressing Enter without input should continue in help session
21902190
self.assertEqual(
21912191
self.mock_interactive_session(["", " ", "quit"]),
2192-
"\nhelp> \nhelp> \nhelp> quit\n",
2192+
["", "help> ", "help> ", "help> quit", ""],
21932193
)
21942194

21952195
def test_interact_quit_commands_exit(self):
@@ -2198,7 +2198,7 @@ def test_interact_quit_commands_exit(self):
21982198
with self.subTest(quit_command=quit_cmd):
21992199
self.assertEqual(
22002200
self.mock_interactive_session([quit_cmd]),
2201-
f"\nhelp> {quit_cmd}\n",
2201+
["", f"help> {quit_cmd}", ""],
22022202
)
22032203

22042204

0 commit comments

Comments
 (0)