From 74cebb887d704e2bf7964127a429b62cdcdf71d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Brigitta=20Sip=C5=91cz?= <b.sipocz@gmail.com> Date: Thu, 23 Jan 2025 13:54:55 -0800 Subject: [PATCH] Cleanup from review Co-authored-by: P. L. Lim <2090236+pllim@users.noreply.github.com> --- README.rst | 2 -- pytest_doctestplus/plugin.py | 1 - 2 files changed, 3 deletions(-) diff --git a/README.rst b/README.rst index fafe755..48b26f6 100644 --- a/README.rst +++ b/README.rst @@ -336,11 +336,9 @@ the package's ``setup.cfg`` file. The syntax for this option is a list of Multiple requirements can be specified if separated by semicolons. - It is also possible to conditionally skip all the doctests in a narrative documentation with ``doctest-requires-all``. - Remote Data ~~~~~~~~~~~ diff --git a/pytest_doctestplus/plugin.py b/pytest_doctestplus/plugin.py index 40307e3..d323c12 100644 --- a/pytest_doctestplus/plugin.py +++ b/pytest_doctestplus/plugin.py @@ -432,7 +432,6 @@ def parse(self, s, name=None): requires_all_match = [re.match( fr'{comment_char}\s+doctest-requires-all\s*::\s+(.*)', x) for x in lines] if any(requires_all_match): - print(requires_all_match) required_all = [re.split(r'\s*[,\s]\s*', match.group(1)) for match in requires_all_match if match][0] required_modules_all = DocTestFinderPlus.check_required_modules(required_all)