From 70739296e1d388f1d2ba4a2e2b24eff53c72171b Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Thu, 30 Jan 2020 19:59:10 -0300 Subject: [PATCH] Remove deprecated 'pytest_itemstart' hook This hook has been deprecated/removed for more than 10 years in a2fe6714f860dfffb657d423355d6c644ccb7550. --- changelog/6637.breaking.rst | 3 +++ src/_pytest/hookspec.py | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) create mode 100644 changelog/6637.breaking.rst diff --git a/changelog/6637.breaking.rst b/changelog/6637.breaking.rst new file mode 100644 index 000000000..d88282ae3 --- /dev/null +++ b/changelog/6637.breaking.rst @@ -0,0 +1,3 @@ +Removed the long-deprecated ``pytest_itemstart`` hook. + +This hook has been marked as deprecated and not been even called by pytest for over 10 years now. diff --git a/src/_pytest/hookspec.py b/src/_pytest/hookspec.py index 74dff1e82..57d31d93b 100644 --- a/src/_pytest/hookspec.py +++ b/src/_pytest/hookspec.py @@ -307,10 +307,6 @@ def pytest_runtestloop(session): """ -def pytest_itemstart(item, node): - """(**Deprecated**) use pytest_runtest_logstart. """ - - @hookspec(firstresult=True) def pytest_runtest_protocol(item, nextitem): """ implements the runtest_setup/call/teardown protocol for