From ca5adbb0b918f63b33c60040104bb0ab6ede7e9d Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Thu, 27 Nov 2025 16:48:00 +1100 Subject: [PATCH] Support pytest 9 Change the function specification of pytest_report_header to not use any arguments. Closes #55 --- .github/workflows/pythonapp.yml | 2 +- conftest.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pythonapp.yml b/.github/workflows/pythonapp.yml index 93d1b51..e84befe 100644 --- a/.github/workflows/pythonapp.yml +++ b/.github/workflows/pythonapp.yml @@ -57,7 +57,7 @@ jobs: run: | python -m pip install --upgrade pip pip install -U setuptools setuptools_scm - pip install "pytest<9" + pip install pytest - uses: actions/download-artifact@v4 with: name: dist diff --git a/conftest.py b/conftest.py index 795c06b..7d2ef32 100644 --- a/conftest.py +++ b/conftest.py @@ -6,7 +6,7 @@ INSTALL_TYPE = "editable" if apipkg.__file__ == LOCAL_APIPKG else "full" -def pytest_report_header(startdir): +def pytest_report_header(): return "apipkg {install_type} install version={version}".format( install_type=INSTALL_TYPE, version=apipkg.__version__ )