chiark / gitweb /
Various bits to improve code coverage.
authorVladimír Vondruš <mosra@centrum.cz>
Fri, 6 Sep 2019 10:27:22 +0000 (12:27 +0200)
committerVladimír Vondruš <mosra@centrum.cz>
Fri, 6 Sep 2019 10:27:22 +0000 (12:27 +0200)
documentation/test_python/content/docs.rst
plugins/m/sphinx.py

index 1486c0279b84adc80a12e8e5319b93351e94b2f1..fd02d9356d299d678377ee1bdeee58560ac5df83 100644 (file)
 
     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
index 8792b56ce42abad4b0b14b3a16dc6c7aaf665994..1b8aba7526b2105d1a1e92f1469674aed59e8c70 100755 (executable)
@@ -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