Skip to content

Commit

Permalink
tests/conftest.py: Do not use distutil
Browse files Browse the repository at this point in the history
It was deprecated in 3.10 and dropped in 3.12: https://docs.python.org/3.11/whatsnew/3.10.html#distutils.

Signed-off-by: Pavel Karpy <[email protected]>
  • Loading branch information
carpawell committed Apr 17, 2024
1 parent c516d25 commit 2e79c77
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pytest_tests/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import os
import shutil
import time
from distutils import dir_util

import allure
import pytest
Expand Down Expand Up @@ -205,6 +204,6 @@ def datadir(tmpdir, request):
test_dir, _ = os.path.splitext(filename)

if os.path.isdir(test_dir):
dir_util.copy_tree(test_dir, str(tmpdir))
shutil.copytree(test_dir, str(tmpdir), dirs_exist_ok=True)

return tmpdir

0 comments on commit 2e79c77

Please sign in to comment.