• Jason Tishler's avatar
    test_largefile can leave its temp file open if one of many tests fail. On · 063606a0
    Jason Tishler yazdı
    platforms (e.g., Cygwin) that are "particular" about open files, this will
    cause other regression tests that use the same temp file to fail:
    
        $ ./python.exe -E -tt Lib/test/regrtest.py -l
        test_largefile test_mmap test_mutants
        test_largefile
        test test_largefile failed -- got -1794967295L, but expected 2500000001L
        test_mmap
        test test_mmap crashed -- exceptions.IOError: [Errno 13] Permission denied: '@test'
        test_mutants
        test test_mutants crashed -- exceptions.IOError: [Errno 13] Permission denied: '@test'
    
    This patch solves the problem by adding missing "try/finally" blocks. Note
    that the "large" size of this patch is due to many white space changes --
    otherwise, the patch is small.
    
    I tested this patch under Red Hat Linux 8.0 too.
    063606a0
Adı
Son kayıt (commit)
Son güncelleme
Demo Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
RISCOS Loading commit data...
Tools Loading commit data...
.cvsignore Loading commit data...
.hgtags Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
README Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...