Skip to content

Commit

Permalink
Replace deprecated distutils.dir_util.copy_tree
Browse files Browse the repository at this point in the history
  • Loading branch information
treiher committed Aug 22, 2022
1 parent e451241 commit de7d680
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration/feature_test.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from __future__ import annotations

from dataclasses import dataclass, field as dataclass_field
from distutils.dir_util import copy_tree
from pathlib import Path
from shutil import copytree
from typing import Mapping, Optional, Sequence, Tuple

import pytest
Expand Down Expand Up @@ -98,7 +98,7 @@ def create_complement(config: Config, feature: str, tmp_path: Path) -> None:

src_dir = Path(__file__).parent / feature / "src"
if src_dir.is_dir():
copy_tree(str(src_dir), str(tmp_path))
copytree(str(src_dir), str(tmp_path), dirs_exist_ok=True)


@pytest.mark.parametrize("feature", [f.name for f in FEATURES])
Expand Down

0 comments on commit de7d680

Please sign in to comment.