diff options
Diffstat (limited to 'ext/pybind11/tests/test_modules.py')
-rw-r--r-- | ext/pybind11/tests/test_modules.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/pybind11/tests/test_modules.py b/ext/pybind11/tests/test_modules.py index fe72f190a..69620949b 100644 --- a/ext/pybind11/tests/test_modules.py +++ b/ext/pybind11/tests/test_modules.py @@ -52,3 +52,11 @@ def test_importing(): assert OD is OrderedDict assert str(OD([(1, 'a'), (2, 'b')])) == "OrderedDict([(1, 'a'), (2, 'b')])" + + +def test_pydoc(): + """Pydoc needs to be able to provide help() for everything inside a pybind11 module""" + import pybind11_tests + import pydoc + + assert pydoc.text.docmodule(pybind11_tests) |