From c318a7487d07a7300108dbd071ac30e76cbc8b2e Mon Sep 17 00:00:00 2001 From: Tammo van der Heide Date: Fri, 27 Oct 2023 15:13:22 +0200 Subject: [PATCH] Substitute distutils in regression testing infrastructure --- test/prog/sktable/bin/testwithworkdir | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/prog/sktable/bin/testwithworkdir b/test/prog/sktable/bin/testwithworkdir index ad596f5d..e0f669d5 100644 --- a/test/prog/sktable/bin/testwithworkdir +++ b/test/prog/sktable/bin/testwithworkdir @@ -14,7 +14,6 @@ import sys import shutil import subprocess import argparse -from distutils.dir_util import copy_tree from argparse import RawTextHelpFormatter sys.path.append(os.path.abspath('../../../../sktools/src/')) @@ -43,8 +42,8 @@ def main(cmdlineargs=None): args = parse_cmdline_args(cmdlineargs) - copy_tree(os.path.join(args.templateroot, args.test), - os.path.join(args.workdir, args.test)) + shutil.copytree(os.path.join(args.templateroot, args.test), + os.path.join(args.workdir, args.test), dirs_exist_ok=True) cwd = os.path.join(args.workdir, args.test)