Browse Source

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
Stefan Eissing 1 month ago
parent
commit
ee31f69690
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tests/conftest.py

+ 2 - 2
tests/conftest.py

@@ -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 = [