mirror of
https://github.com/pybind/pybind11.git
synced 2026-03-14 20:27:47 +00:00
Add __module__ attribute to all pybind11 builtin types (#729)
Fixes #728.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user