• Victor Stinner's avatar
    bpo-18748: _pyio.IOBase emits unraisable exception (GH-13512) · bc2aa816
    Victor Stinner authored
    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.
    bc2aa816
3.8.rst 46.4 KB