Skip to content

Commit

Permalink
use stardard lib
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeWang1127 committed Sep 30, 2024
1 parent 872c24a commit ad85297
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions library_generation/test/integration_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
import shutil
import subprocess
import unittest
from distutils.dir_util import copy_tree
from distutils.file_util import copy_file
from shutil import copytree
from shutil import copyfile
from pathlib import Path
from library_generation.model.generation_config import GenerationConfig
from library_generation.model.generation_config import from_yaml
Expand Down Expand Up @@ -269,14 +269,14 @@ def __prepare_golden_files(
):
for library_name in library_names:
if config.is_monorepo():
copy_tree(f"{repo_dest}/{library_name}", f"{golden_dir}/{library_name}")
copy_tree(
copytree(f"{repo_dest}/{library_name}", f"{golden_dir}/{library_name}")
copytree(
f"{repo_dest}/gapic-libraries-bom",
f"{golden_dir}/gapic-libraries-bom",
)
copy_file(f"{repo_dest}/pom.xml", golden_dir)
copyfile(f"{repo_dest}/pom.xml", golden_dir)
else:
copy_tree(f"{repo_dest}", f"{golden_dir}/{library_name}")
copytree(f"{repo_dest}", f"{golden_dir}/{library_name}")

@classmethod
def __run_entry_point_in_docker_container(
Expand Down

0 comments on commit ad85297

Please sign in to comment.