mirror of https://github.com/python/cpython
Browse Source
* 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 testpull/1047/merge
committed by
Victor Stinner
2 changed files with 6 additions and 2 deletions
Loading…
Reference in new issue