python-uranium/aa2b9e3.patch

31 lines
1.1 KiB
Diff

From aa2b9e3e9545bb64cd873d626bcb4b2724cd3786 Mon Sep 17 00:00:00 2001
From: Stanislav Levin <slev@altlinux.org>
Date: Tue, 24 Feb 2026 19:12:59 +0300
Subject: [PATCH] tests: replace deprecated path parameter for
pytest_ignore_collect hook
https://docs.pytest.org/en/latest/deprecations.html#py-path-local-arguments-for-hooks-replaced-with-pathlib-path
> py.path.local arguments for hooks replaced with pathlib.Path
Deprecated since version 7.0.
Removed in version 9.0.
Fixes: https://github.com/Ultimaker/Uranium/issues/1030
Signed-off-by: Stanislav Levin <slev@altlinux.org>
---
tests/benchmarks/conftest.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/benchmarks/conftest.py b/tests/benchmarks/conftest.py
index 6fc1c9ebde..845708d961 100644
--- a/tests/benchmarks/conftest.py
+++ b/tests/benchmarks/conftest.py
@@ -7,7 +7,7 @@
warn = True
@pytest.hookimpl
-def pytest_ignore_collect(path, config):
+def pytest_ignore_collect(collection_path, config):
if config.pluginmanager.hasplugin("pytest-benchmark"):
return False
else: