[Python-checkins] r51187 - python/trunk/Lib/test/test_shutil.py

Tim Peters tim.peters at gmail.com
Thu Aug 10 22:05:13 CEST 2006


[Tim]
>> ... stopped suppressing errors when removing a file or
>> directory fails (removing /shouldn't/ fail!)

[Andrew]
> I thought you couldn't remove a running executable on Windows; am I
> correct?  (Or is that just in older Windows versions?)

That's correct.  But test_shutil attempts nothing of the sort, so it's
irrelevant (test_shutil had been suppressing exceptions from trying to
delete ordinary files and directories it had itself created, and it
was in fact because it suppressed these exceptions that it didn't
notice it was needlessly leaving junk temp files and junk temp
directories behind).  Note that the patch was against test_shutil.py;
it didn't touch shutil.py.


More information about the Python-checkins mailing list