Skip to content

Commit ef67558

Browse files
committed
fix(pytest-doctest-docutils): Silently disable doctest
1 parent aca7cac commit ef67558

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/pytest_doctest_docutils.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import _pytest
2525
from _pytest import outcomes
2626
from _pytest.outcomes import OutcomeException
27-
from _pytest.warning_types import PytestConfigWarning
2827

2928
from doctest_docutils import DocutilsDocTestFinder, setup
3029

@@ -45,14 +44,7 @@ def pytest_configure(config: pytest.Config) -> None:
4544
Todo: Find a way to make these plugins cooperate without collecting twice.
4645
"""
4746
if config.pluginmanager.has_plugin("doctest"):
48-
message = (
49-
"`pytest-doctest-docutils` is incompatible with `doctest`. "
50-
"Please disable `doctest` via `-p no:doctest` in order to use "
51-
"`pytest-doctest-docutils`."
52-
)
53-
5447
config.pluginmanager.set_blocked("doctest")
55-
config.issue_config_time_warning(PytestConfigWarning(message), stacklevel=3)
5648

5749

5850
def pytest_unconfigure() -> None:

0 commit comments

Comments
 (0)