Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr>
Import logging lazily in assertLogs() in unittest. Move TestHandler from test.support to logging_helper.