MCPcopy Create free account
hub / github.com/pybind/pybind11 / test_pydoc

Function test_pydoc

tests/test_modules.py:91–99  ·  view source on GitHub ↗

Pydoc needs to be able to provide help() for everything inside a pybind11 module

()

Source from the content-addressed store, hash-verified

89 reason="TODO should be fixed on GraalPy side (failure was introduced by pr #5782)",
90)
91def test_pydoc():
92 """Pydoc needs to be able to provide help() for everything inside a pybind11 module"""
93 import pydoc
94
95 import pybind11_tests
96
97 assert pybind11_tests.__name__ == "pybind11_tests"
98 assert pybind11_tests.__doc__ == "pybind11 test module"
99 assert pydoc.text.docmodule(pybind11_tests)
100
101
102def test_module_handle_type_name():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected