Skip to content

Commit

Permalink
xtest: use tmp_path_factory fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-kokos committed Apr 12, 2023
1 parent 193b746 commit 50d7440
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/integration/test_utils_vcs_git.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@


if TYPE_CHECKING:
from _pytest.tmpdir import TempdirFactory
from _pytest.tmpdir import TempPathFactory
from dulwich.client import FetchPackResult
from dulwich.client import GitClient
from pytest_mock import MockerFixture
Expand Down Expand Up @@ -79,9 +79,9 @@ def source_directory_name(source_url: str) -> str:


@pytest.fixture(scope="module")
def local_repo(tmpdir_factory: TempdirFactory, source_directory_name: str) -> Repo:
def local_repo(tmp_path_factory: TempPathFactory, source_directory_name: str) -> Repo:
with Repo.init(
tmpdir_factory.mktemp("src") / source_directory_name, mkdir=True
tmp_path_factory.mktemp("src") / source_directory_name, mkdir=True
) as repo:
yield repo

Expand Down

0 comments on commit 50d7440

Please sign in to comment.