bpo-37181: Fix test_regrtest failures on Windows arm64 (GH-13872)

(cherry picked from commit e7e5039d6940e41839dcef0433262ff363408dad)

Co-authored-by: Paul Monson <paulmon@users.noreply.github.com>
3 files changed