Close issue #22895: fix test failure introduced by the fix for issue #22462.

--HG--
branch : 3.4