This question is basically the same as Python doctest: skip a test conditionally, except I'm not asking about Python's native doctest
module but about Sphinx's doctest
extension:
Is there any way to skip doctests "dynamically" depending on some condition, which could e.g. be evaluated in the setup code for the given reST file? The documentation doesn't mention anything of the sort, but maybe someone has a good workaround.