From f382a6bb2084c8fb5a4e252ab7f3358752e27f67 Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Thu, 25 Jun 2020 17:32:05 +0300 Subject: [PATCH] hookspec: remove unused hookspec pytest_doctest_prepare_content() It's been unused for 10 years at lest from bb50ec89a92f0623c9f8f5f29. --- changelog/7418.breaking.rst | 2 ++ src/_pytest/hookspec.py | 12 ------------ 2 files changed, 2 insertions(+), 12 deletions(-) create mode 100644 changelog/7418.breaking.rst diff --git a/changelog/7418.breaking.rst b/changelog/7418.breaking.rst new file mode 100644 index 00000000000..23f60da3765 --- /dev/null +++ b/changelog/7418.breaking.rst @@ -0,0 +1,2 @@ +Remove the `pytest_doctest_prepare_content` hook specification. This hook +hasn't been triggered by pytest for at least 10 years. diff --git a/src/_pytest/hookspec.py b/src/_pytest/hookspec.py index 1b4b09c85d4..8c88b66cb17 100644 --- a/src/_pytest/hookspec.py +++ b/src/_pytest/hookspec.py @@ -805,18 +805,6 @@ def pytest_warning_recorded( """ -# ------------------------------------------------------------------------- -# doctest hooks -# ------------------------------------------------------------------------- - - -@hookspec(firstresult=True) -def pytest_doctest_prepare_content(content): - """ return processed content for a given doctest - - Stops at first non-None result, see :ref:`firstresult` """ - - # ------------------------------------------------------------------------- # error handling and internal debugging hooks # -------------------------------------------------------------------------