Skip to content

WIP Support for :skipif:#10

Open
twmr wants to merge 1 commit intomasterfrom
skipif
Open

WIP Support for :skipif:#10
twmr wants to merge 1 commit intomasterfrom
skipif

Conversation

@twmr
Copy link
Copy Markdown
Owner

@twmr twmr commented Jun 6, 2019

  • currently only supported in the testoutput directive
  • completely skips the doctest if the expression in :skipif: evaluates
    to True.

It is planned to extend this commit s.t. the behavior of skipif is the
same as written in the documentation of sphinx.ext.doctest:

The value of the skipif option is evaluated as a Python expression. If
the result is a true value, the directive is omitted from the test run
just as if it wasn’t present in the file at all.

Closes: #9

* currently only supported in the testoutput directive
* completely skips the doctest if the expression in :skipif: evaluates
  to True.

It is planned to extend this commit s.t. the behavior of skipif is the
same as writtin the documentation of sphinx.ext.doctest:

The value of the skipif option is evaluated as a Python expression. If
the result is a true value, the directive is omitted from the test run
just as if it wasn’t present in the file at all.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for :skipif:

1 participant