]> granicus.if.org Git - python/commit
New test code failed to close the file. This caused
authorTim Peters <tim.peters@gmail.com>
Tue, 14 Feb 2006 17:41:18 +0000 (17:41 +0000)
committerTim Peters <tim.peters@gmail.com>
Tue, 14 Feb 2006 17:41:18 +0000 (17:41 +0000)
commitcffcfed1263a255386c0da50709d6abc18accaab
treebe46b1becfc45183e734475095b3301e8a555bac
parent967aa8b3496df29f03895b5e30a590d77d337167
New test code failed to close the file.  This caused
test_file to fail on Windows in reality (can't delete
a still-open file), but a new bare "except:" hid that
test_file failed on Windows, and leaving behind the
still-open TESTFN caused a cascade of bogus failures
in later tests.

So, close the file, and stop hiding failure to unlink.
Lib/test/test_file.py