…om inside a contextlib context manager (GH-95883) (cherry picked from commit b3722ca) Co-authored-by: Thomas Grainger <tagrain@gmail.com>