• Tim Peters's avatar
    test_copytree_simple(): This was leaving behind two new temp · b2dd1a39
    Tim Peters yazdı
    directories each time it ran, at least on Windows.
    
    Several changes:  explicitly closed all files; wrapped long
    lines; stopped suppressing errors when removing a file or
    directory fails (removing /shouldn't/ fail!); and changed
    what appeared to be incorrect usage of os.removedirs() (that
    doesn't remove empty directories at and /under/ the given
    path, instead it must be given an empty leaf directory and
    then deletes empty directories moving /up/ the path -- could
    be that the conceptually simpler shutil.rmtree() was really
    actually intended here).
    b2dd1a39
test_shutil.py 5.5 KB