mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
Fixed bug #1470
This commit is contained in:
parent
4673e19d8b
commit
044d709111
1 changed files with 2 additions and 5 deletions
|
@ -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"):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue