Issue #25322: Merge contextlib.suppress test fix from 3.5