diff --git a/src/pytest_doctest_docutils.py b/src/pytest_doctest_docutils.py index aad04a3..a1681af 100644 --- a/src/pytest_doctest_docutils.py +++ b/src/pytest_doctest_docutils.py @@ -197,6 +197,10 @@ def _get_flag_lookup() -> t.Dict[str, int]: def get_optionflags(config: pytest.Config) -> int: + """Fetch optionflags from pytest configuration. + + Extracted from pytest.doctest 8.0 (license: MIT). + """ optionflags_str = str(config.getini("doctest_optionflags")) flag_lookup_table = _get_flag_lookup() flag_acc = 0