]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
pytest: adapt to API change
authorStefan Eissing <stefan@eissing.org>
Mon, 4 Mar 2024 09:05:52 +0000 (10:05 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 4 Mar 2024 11:47:56 +0000 (12:47 +0100)
- 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

tests/conftest.py

index 713a17423178a322089ad6a2400905694905ed73..7ab6d7c9fe6874c8dacbf369c9c7c62274f886d9 100644 (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 = [