You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes it is useful to execute a doctest only for specific Python versions. For instance, think at the Python documentation: if the doc explains a new feature available from Python 3.6, I would like the code example to be doctested only for Python >= 3.6. I was thinking to add an option like this one:
.. doctest::
:pyversion: >= 3.6
In that case, also the testsetup, testcleanup and testcode directives should have this option. What do you think?
The text was updated successfully, but these errors were encountered:
Sometimes it is useful to execute a doctest only for specific Python versions. For instance, think at the Python documentation: if the doc explains a new feature available from Python 3.6, I would like the code example to be doctested only for Python >= 3.6. I was thinking to add an option like this one:
In that case, also the testsetup, testcleanup and testcode directives should have this option. What do you think?
The text was updated successfully, but these errors were encountered: