Staging
v0.8.1
Revision 29094cec7cddd561cac16ce93443ca72d740de4d authored by Nir Soffer on 26 July 2017, 23:24:52 UTC, committed by Victor Stinner on 26 July 2017, 23:24:52 UTC
* bpo-30980: Fix close test to fail

test_close_twice was not considering the fact that file_wrapper is
duping the file descriptor. Closing the original descriptor left the
duped one open, hiding the fact that close protection is not effective.

* bpo-30980: Fix double close protection

Invalidated self.fd before closing, handling correctly the case when
os.close raises.

* bpo-30980: Fix fd leak introduced in the fixed test
1 parent 0cba38d
History
File Mode Size
NEWS.d
TextMate
Vim
ACKS -rw-r--r-- 22.8 KB
BeOS-NOTES -rw-r--r-- 1.4 KB
BeOS-setup.py -rw-r--r-- 23.1 KB
HISTORY -rw-r--r-- 669.3 KB
NEWS -rw-r--r-- 462.5 KB
Porting -rw-r--r-- 1.9 KB
README -rw-r--r-- 2.3 KB
README.AIX -rw-r--r-- 5.0 KB
README.Emacs -rw-r--r-- 1.0 KB
README.OpenBSD -rw-r--r-- 1.5 KB
README.coverity -rw-r--r-- 845 bytes
README.klocwork -rw-r--r-- 1.2 KB
README.valgrind -rw-r--r-- 4.3 KB
RFD -rw-r--r-- 3.9 KB
SpecialBuilds.txt -rw-r--r-- 10.7 KB
cheatsheet -rw-r--r-- 103.6 KB
developers.txt -rw-r--r-- 12.0 KB
gdbinit -rw-r--r-- 4.7 KB
indent.pro -rw-r--r-- 557 bytes
maintainers.rst -rw-r--r-- 8.0 KB
pymemcompat.h -rw-r--r-- 3.1 KB
python-config.in -rw-r--r-- 1.6 KB
python-wing3.wpr -rw-r--r-- 537 bytes
python-wing4.wpr -rw-r--r-- 698 bytes
python.man -rw-r--r-- 14.2 KB
python.pc.in -rw-r--r-- 253 bytes
setuid-prog.c -rw-r--r-- 5.6 KB
valgrind-python.supp -rw-r--r-- 7.1 KB
vgrindefs -rw-r--r-- 505 bytes

README

back to top