Issue #20155: Fix non-buildbot test failure on Windows.  Patch by Claudiu Popa,
revised by R. David Murray.

--HG--
branch : 2.7