mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
bpo-38786: Add parsing of https links to pydoc (GH-17143)
This commit is contained in:
parent
d89cea15ad
commit
61289d4366
4 changed files with 14 additions and 2 deletions
|
@ -1311,6 +1311,17 @@ foo
|
|||
'async <a name="-an_async_generator"><strong>an_async_generator',
|
||||
html)
|
||||
|
||||
def test_html_for_https_links(self):
|
||||
def a_fn_with_https_link():
|
||||
"""a link https://localhost/"""
|
||||
pass
|
||||
|
||||
html = pydoc.HTMLDoc().document(a_fn_with_https_link)
|
||||
self.assertIn(
|
||||
'<a href="https://localhost/">https://localhost/</a>',
|
||||
html
|
||||
)
|
||||
|
||||
class PydocServerTest(unittest.TestCase):
|
||||
"""Tests for pydoc._start_server"""
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue