summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2007-11-20 01:48:48 (GMT)
committerChristian Heimes <christian@cheimes.de>2007-11-20 01:48:48 (GMT)
commit044d7091114814e85db098e0a6bc7e989e66d62b (patch)
treecdbc964db262f9b9e3ff14e68fb801df46f28c1c /Lib
parent4673e19d8b477ee25159de5dc8f6c9b89cdfaee7 (diff)
downloadcpython-044d7091114814e85db098e0a6bc7e989e66d62b.zip
cpython-044d7091114814e85db098e0a6bc7e989e66d62b.tar.gz
cpython-044d7091114814e85db098e0a6bc7e989e66d62b.tar.bz2
Fixed bug #1470
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_shutil.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/Lib/test/test_shutil.py b/Lib/test/test_shutil.py
index da71fa8..56e928e 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"):