mirror of https://github.com/python/cpython
Another fix for test_shutil. Martin pointed out that it breaks some build bots
This commit is contained in:
parent
90ebd3e0e9
commit
e052dd873b
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue