We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cae1c2 commit 2c4944cCopy full SHA for 2c4944c
Lib/test/test_pydoc/test_pydoc.py
@@ -2179,7 +2179,8 @@ def mock_getline(prompt):
2179
with unittest.mock.patch.object(helper, "getline", mock_getline):
2180
helper.interact()
2181
2182
- return output.getvalue().split(os.linesep)
+ # handle different line endings across platforms consistently
2183
+ return output.getvalue().splitlines(keepends=False) + ['']
2184
2185
def test_keywords(self):
2186
self.assertEqual(sorted(pydoc.Helper.keywords),
0 commit comments