mirror of
https://github.com/JakeHillion/drgn.git
synced 2024-12-23 09:43:06 +00:00
tests: test that Python documentation renders
A couple of times, I've broken help(drgn) by formatting a function signature in a way that the inspect module doesn't understand (namely, it crashes on Enum default arguments). Let's add a simple test that the documentation at least renders.
This commit is contained in:
parent
06cce1baa1
commit
67a16a09b8
9
tests/test_docs.py
Normal file
9
tests/test_docs.py
Normal file
@ -0,0 +1,9 @@
|
||||
import pydoc
|
||||
import unittest
|
||||
|
||||
import drgn
|
||||
|
||||
|
||||
class TestDocs(unittest.TestCase):
|
||||
def test_render(self):
|
||||
pydoc.render_doc(drgn)
|
Loading…
Reference in New Issue
Block a user