commit | bc2aa816620c5e02ad8e94d8514b7e8f3f551ca1 | [log] [tgz] |
---|---|---|
author | Victor Stinner <vstinner@redhat.com> | Thu May 23 03:45:09 2019 +0200 |
committer | GitHub <noreply@github.com> | Thu May 23 03:45:09 2019 +0200 |
tree | bf5c847dda365eab94373bc06262d2092dd9077e | |
parent | 0a8e57248b913851640c64375600f05157c997df [diff] |
bpo-18748: _pyio.IOBase emits unraisable exception (GH-13512) In development (-X dev) mode and in a debug build, IOBase finalizer of the _pyio module now logs the exception if the close() method fails. The exception is ignored silently by default in release build. test_io: test_error_through_destructor() now uses support.catch_unraisable_exception() rather than capturing stderr.