module documentation

Mimic doctest by automatically executing code snippets and checking their results.

Unknown Field: copyright
Copyright 2007-2022 by the Sphinx team, see AUTHORS.
Unknown Field: license
BSD, see LICENSE for details.
Variable blankline​_re Undocumented
Variable doctestopt​_re Undocumented
Variable logger Undocumented
Variable parser Undocumented
Class ​Doc​Test​Builder Runs test snippets in the documentation.
Class ​Doctest​Directive Undocumented
Class ​Sphinx​Doc​Test​Runner Undocumented
Class ​Testcleanup​Directive Undocumented
Class ​Test​Code Undocumented
Class ​Testcode​Directive Undocumented
Class ​Test​Directive Base class for doctest-related directives.
Class ​Test​Group Undocumented
Class ​Testoutput​Directive Undocumented
Class ​Testsetup​Directive Undocumented
Function is​_allowed​_version Check spec satisfies version or not.
Function setup Undocumented
blankline_re =

Undocumented

doctestopt_re =

Undocumented

logger =

Undocumented

parser =

Undocumented

def is_allowed_version(spec, version):

Check spec satisfies version or not.

This obeys PEP-440 specifiers: https://www.python.org/dev/peps/pep-0440/#version-specifiers

Some examples:

>>> is_allowed_version('3.3', '<=3.5')
True
>>> is_allowed_version('3.3', '<=3.2')
False
>>> is_allowed_version('3.3', '>3.2, <4.0')
True
Parameters
spec:strUndocumented
version:strUndocumented
Returns
boolUndocumented
def setup(app):

Undocumented

Parameters
app:SphinxUndocumented
Returns
Dict[str, Any]Undocumented