From: Vladimír Vondruš Date: Fri, 6 Sep 2019 10:27:22 +0000 (+0200) Subject: Various bits to improve code coverage. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=3f37a7acd131038de82d2808cfcbd58745811457;p=blog.git Various bits to improve code coverage. --- diff --git a/documentation/test_python/content/docs.rst b/documentation/test_python/content/docs.rst index 1486c027..fd02d935 100644 --- a/documentation/test_python/content/docs.rst +++ b/documentation/test_python/content/docs.rst @@ -130,6 +130,8 @@ The :p:`b` is not documented, while :p:`c` isn't in the signature. +Doing :p:`this` here is not good either. + .. py:function:: content.full_docstring :param a: First parameter :param b: Second diff --git a/plugins/m/sphinx.py b/plugins/m/sphinx.py index 8792b56c..1b8aba75 100755 --- a/plugins/m/sphinx.py +++ b/plugins/m/sphinx.py @@ -408,7 +408,7 @@ def consume_docstring(type, path: List[str], signature: Optional[str], doc: str) elif type.name == 'PROPERTY': source = '.. py:property:: ' doc_output = property_doc_output - else: + else: # pragma: no cover # Data don't have docstrings, you silly assert type.name != 'DATA' # Ignore unknown types, pass the docs through