Commit 044d7091 authored by Christian Heimes's avatar Christian Heimes

Fixed bug #1470

parent 4673e19d
......@@ -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"):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment