diff options
author | Nir Soffer <nirsof@gmail.com> | 2017-07-26 23:24:52 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2017-07-26 23:24:52 (GMT) |
commit | 29094cec7cddd561cac16ce93443ca72d740de4d (patch) | |
tree | aa53f543cd40a2c2e8adef84b992d41d5d75c40c /Python/Python-ast.c | |
parent | 0cba38d207dc233707b09787e6618cfca44cc2b7 (diff) | |
download | cpython-29094cec7cddd561cac16ce93443ca72d740de4d.zip cpython-29094cec7cddd561cac16ce93443ca72d740de4d.tar.gz cpython-29094cec7cddd561cac16ce93443ca72d740de4d.tar.bz2 |
bpo-30980: Fix double close in asyncore.file_wrapper (#2789) (#2900)
* 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
Diffstat (limited to 'Python/Python-ast.c')
0 files changed, 0 insertions, 0 deletions