diff --git a/pytest_doctestplus/plugin.py b/pytest_doctestplus/plugin.py index 3332f8f..6487da7 100644 --- a/pytest_doctestplus/plugin.py +++ b/pytest_doctestplus/plugin.py @@ -444,7 +444,7 @@ def parse(self, s, name=None): continue if config.getoption('remote_data', 'none') != 'any': - if any(re.match(fr'{comment_char} doctest-remote-data-all::', x.strip()) + if any(re.match(fr'{comment_char}\s+doctest-remote-data-all\s*::', x.strip()) for x in lines): skip_all = True continue