From c404155978fc488716ff06dcc430ea5cd54c05f0 Mon Sep 17 00:00:00 2001 From: Michal Nowak Date: Thu, 18 Dec 2025 17:31:45 +0100 Subject: [PATCH] Make pytest.PytestRemovedIn9Warning warning for "make check" (cherry picked from commit c10333a3405ef3d5101a2af381637f8b00f97917) --- .gitlab-ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4c4acebfdf..db57a14f9c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -560,6 +560,10 @@ stages: script: - cd bin/tests/system - RET=0 + # With pytest 9.0, there's the following error in pytest_ignore_collect(): + # The (path: py.path.local) argument is deprecated, please use (collection_path: pathlib.Path). + # This should be fixed before pytest 9.1, when it becomes ineffective. + - if pytest --version | grep -F "pytest 9.0" >/dev/null; then echo "filterwarnings = ignore::pytest.PytestRemovedIn9Warning" >> pytest.ini; fi - make -j${TEST_PARALLEL_JOBS:-1} check || RET=$? - cd "$CI_PROJECT_DIR" - *find_python