We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b48ba5a commit 8779acdCopy full SHA for 8779acd
pytest_doctestplus/plugin.py
@@ -208,8 +208,12 @@ def _is_numpy_ufunc(method):
208
209
210
def pytest_configure(config):
211
- doctest_plugin = config.pluginmanager.getplugin('doctest')
212
- run_regular_doctest = config.option.doctestmodules and not config.option.doctest_plus
+ doctest_plugin = config.pluginmanager.getplugin("doctest")
+ if not hasattr(config.option, "doctestmodules"):
213
+ return
214
+ run_regular_doctest = (
215
+ config.option.doctestmodules and not config.option.doctest_plus
216
+ )
217
if config.option.doctest_plus_generate_diff:
218
config.option.doctest_only = True
219
use_doctest_plus = config.getini(
0 commit comments