◐ Shell
clean mode source ↗

documentation for `http.server` refers to wrong `test()` function

Skip to content

Navigation Menu

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

@yedpodtrzitko

Description

@yedpodtrzitko

Documentation

the following paragraph in docs for http.server mentions function test:

For example usage, see the implementation of the :func:`test` function
invocation in the :mod:`http.server` module.

which is a reference to function test in the same file:

def test(HandlerClass=BaseHTTPRequestHandler,

but in the rendered docs :func:`test` is resolved as a link to https://docs.python.org/3/library/test.html#module-test instead of the aforementioned function in the same file.