Skip to content

Commit 575462a

Browse files
committed
fix: lint and words
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
1 parent b50ffbb commit 575462a

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

Lib/test/test_pydoc/test_pydoc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2166,6 +2166,7 @@ def test_keywords(self):
21662166
sorted(keyword.kwlist))
21672167

21682168
def test_interact_empty_line_continues(self):
2169+
# gh-138568: test pressing Enter without input should continue in help session
21692170
with captured_stdout() as output:
21702171
helper = pydoc.Helper(output=output)
21712172
input_sequence = ['', 'quit']
@@ -2201,7 +2202,6 @@ def mock_getline(prompt):
22012202
with unittest.mock.patch.object(helper, 'getline', side_effect=mock_getline):
22022203
helper.interact()
22032204

2204-
# Should only be called once before exiting
22052205
self.assertEqual(call_count[0], 1)
22062206
output_text = output.getvalue()
22072207
prompt_count = output_text.count('help> ')
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
In :mod:`pydoc` interactive help mode to handle empty input correct as doc.
2-
Empty lines (pressing Enter without input) will continue in help session
3-
instead of exiting.
2+
press Enter without input should continue in help session instead of exiting.

0 commit comments

Comments
 (0)