From: Christian Heimes Date: Tue, 20 Nov 2007 01:48:48 +0000 (+0000) Subject: Fixed bug #1470 X-Git-Tag: v2.6a1~1035 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=044d7091114814e85db098e0a6bc7e989e66d62b;p=python Fixed bug #1470 --- diff --git a/Lib/test/test_shutil.py b/Lib/test/test_shutil.py index da71fa83bc..56e928e436 100644 --- a/Lib/test/test_shutil.py +++ b/Lib/test/test_shutil.py @@ -113,12 +113,9 @@ class TestShutil(unittest.TestCase): ): if os.path.exists(path): os.remove(path) - for path in ( - os.path.join(src_dir, 'test_dir'), - os.path.join(dst_dir, 'test_dir'), - ): + for path in (src_dir, os.path.join(dst_dir, os.path.pardir)): if os.path.exists(path): - os.removedirs(path) + shutil.rmtree(path) if hasattr(os, "symlink"):