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:
Omar Sandoval 2019-07-24 10:24:18 -07:00
parent 06cce1baa1
commit 67a16a09b8

9
tests/test_docs.py Normal file
View File

@ -0,0 +1,9 @@
import pydoc
import unittest
import drgn
class TestDocs(unittest.TestCase):
def test_render(self):
pydoc.render_doc(drgn)