Another fix for test_shutil. Martin pointed out that it breaks some build bots

This commit is contained in:
Christian Heimes 2007-11-20 03:20:04 +00:00
parent 90ebd3e0e9
commit e052dd873b
1 changed files with 3 additions and 1 deletions

View File

@ -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)