mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Another fix for test_shutil. Martin pointed out that it breaks some build bots
This commit is contained in:
parent
90ebd3e0e9
commit
e052dd873b
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue