bpo-37220: Fix 2.7 test -R crash on Windows. (GH-13957)


The patch needed for 2.7 should make the test more stable on 3.x also.
(cherry picked from commit 66d47da86aff15be34adbec02596bb3188684c0d)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
1 file changed