twmr / pytest-sphinx

sphinx doctest plugin for pytest
BSD 3-Clause "New" or "Revised" License
29 stars 6 forks source link

examples from https://github.com/sphinx-doc/sphinx/blob/master/tests/roots/test-ext-doctest/doctest.txt are failed for me #24

Closed artsiomkaltovich closed 3 years ago

artsiomkaltovich commented 4 years ago

Hello.

I stuck with test with testoutput with :hide: directive. I run the code as follow:

$ pytest --doctest-modules  --doctest-glob="*.rst"

Unfortunately the examples page are outdated.

Regards.

artsiomkaltovich commented 4 years ago

The rst is following:

Testing the doctest extension
=============================

* options for doctest/testcode/testoutput blocks

  .. testcode::

     print('Output         text.')

  .. testoutput::
     :hide:
     :options: +NORMALIZE_WHITESPACE

     Output text.
twmr commented 4 years ago

Hi @ArtyomKaltovich. Sry for my late reply.

Can you check if the latest release of pytest-sphinx has fixed the issue for you? In #17 I added support for ignoring the :hide: option.

artsiomkaltovich commented 3 years ago

Hello @thisch.

I've found a workaround, but thank you for the fix. :)

I will close the issue.