From 296d437d6ca86c9623f34afd25da6b4d107c0259 Mon Sep 17 00:00:00 2001 From: "d.kovalenko" Date: Thu, 9 Jul 2026 11:25:02 +0300 Subject: [PATCH] fix: test_copytree__with_content__relative did not delete dest The test left a garbage in the working directory. We output information messages into log now, too. --- tests/test_os_ops_common.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/test_os_ops_common.py b/tests/test_os_ops_common.py index a21969d..d892f01 100644 --- a/tests/test_os_ops_common.py +++ b/tests/test_os_ops_common.py @@ -3412,6 +3412,10 @@ def test_copytree__with_content__relative( dst_a = os_ops.build_path(cwd, dst) + logging.info("src : [{}]".format(src)) + logging.info("dst : [{}]".format(dst)) + logging.info("dst_a: [{}]".format(dst_a)) + os_ops.makedir(src) src_file1 = os_ops.build_path(src, "file1.dat") @@ -3436,6 +3440,10 @@ def test_copytree__with_content__relative( assert os_ops.path_exists(dst_dir1_file2) assert os_ops.read(dst_dir1_file2, binary=False) == "cba" + os_ops.rmdirs(dst) + assert not os_ops.path_exists(dst) + assert not os_ops.path_exists(dst_a) + os_ops.rmdirs(tmpdir) assert not os_ops.path_exists(tmpdir) return