Skip to content

Commit

Permalink
Use non-deprecated argument in pytest hook (bokeh#13985)
Browse files Browse the repository at this point in the history
pytest_report_collectionfinish()'s startdir argument has been deprecated
since 7.0, and with pytest 8.2 now raises a deprecation warning that
it will be removed in 9.0. Switch to the new start_path argument.
  • Loading branch information
s-t-e-v-e-n-k committed Jul 18, 2024
1 parent e7e9557 commit 8c2833e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/support/plugins/selenium.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#-----------------------------------------------------------------------------

# Standard library imports
import pathlib
from shutil import which
from typing import (
TYPE_CHECKING,
Expand All @@ -34,7 +35,6 @@
import pytest

if TYPE_CHECKING:
import py
from _pytest import config, nodes
from selenium.webdriver.remote.webdriver import WebDriver

Expand All @@ -52,7 +52,7 @@
# General API
#-----------------------------------------------------------------------------

def pytest_report_collectionfinish(config: config.Config, startdir: py.path.local, items: Sequence[nodes.Item]) -> list[str]:
def pytest_report_collectionfinish(config: config.Config, start_path: pathlib.Path, items: Sequence[nodes.Item]) -> list[str]:
'''
'''
Expand Down

0 comments on commit 8c2833e

Please sign in to comment.