From 5b9f72770424e0461ccb96f83bda298022574fea Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Sat, 29 Jul 2023 14:52:28 +0100 Subject: [PATCH] Stop using deprecated `@pytest.mark.trylast` Fixes #155 Signed-off-by: Pedro Algarvio --- changelog/155.improvement.rst | 1 + src/saltfactories/plugins/markers.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog/155.improvement.rst diff --git a/changelog/155.improvement.rst b/changelog/155.improvement.rst new file mode 100644 index 00000000..1980ca3b --- /dev/null +++ b/changelog/155.improvement.rst @@ -0,0 +1 @@ +Stop using deprecated `@pytest.mark.trylast` diff --git a/src/saltfactories/plugins/markers.py b/src/saltfactories/plugins/markers.py index 49082517..a2d01545 100644 --- a/src/saltfactories/plugins/markers.py +++ b/src/saltfactories/plugins/markers.py @@ -16,7 +16,7 @@ def pytest_runtest_setup(item): saltfactories.utils.markers.evaluate_markers(item) -@pytest.mark.trylast +@pytest.hookimpl(trylast=True) def pytest_configure(config): """ Configure the pytest plugin.