drgn/tests/test_docs.py
Omar Sandoval 67a16a09b8 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.
2019-07-24 11:01:35 -07:00

10 lines
137 B
Python

import pydoc
import unittest
import drgn
class TestDocs(unittest.TestCase):
def test_render(self):
pydoc.render_doc(drgn)