diff --git a/Lib/test/test_shutil.py b/Lib/test/test_shutil.py index 56e928e436f..ee15d0e1956 100644 --- a/Lib/test/test_shutil.py +++ b/Lib/test/test_shutil.py @@ -113,7 +113,9 @@ class TestShutil(unittest.TestCase): ): if os.path.exists(path): os.remove(path) - for path in (src_dir, os.path.join(dst_dir, os.path.pardir)): + for path in (src_dir, + os.path.abspath(os.path.join(dst_dir, os.path.pardir)) + ): if os.path.exists(path): shutil.rmtree(path)