pytest: adapt to API change

- pytest has changed the signature of the hook pytest_report_header()
  for some obscure reason and that change landed in our CI now

- remove the changed param that we never used anyway

Closes #13037
This commit is contained in:
Stefan Eissing 2024-03-04 10:05:52 +01:00 committed by Daniel Stenberg
parent 9454757508
commit ee31f69690
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -26,10 +26,10 @@ import sys, os
sys.path.append(os.path.join(os.path.dirname(__file__), 'http'))
import pytest
from testenv import Env
def pytest_report_header(config, startdir):
def pytest_report_header(config):
# Env inits its base properties only once, we can report them here
env = Env()
report = [