]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Make pytest.PytestRemovedIn9Warning warning for "make check"
authorMichal Nowak <mnowak@isc.org>
Thu, 18 Dec 2025 16:31:45 +0000 (17:31 +0100)
committerMichal Nowak <mnowak@isc.org>
Thu, 18 Dec 2025 16:31:45 +0000 (17:31 +0100)
.gitlab-ci.yml

index f3528827c9ddd32e247822f40cc3f634992f4dee..b85c0732b4e518da6edbc15cdb5d9800f2c04eaf 100644 (file)
@@ -605,6 +605,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