SIGN IN SIGN UP

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.
V
Victor Stinner committed
bc2aa816620c5e02ad8e94d8514b7e8f3f551ca1
Parent: 0a8e572
Committed by GitHub <noreply@github.com> on 5/23/2019, 1:45:09 AM