Fix the test for issue #6972.
Remove trailing dots on Windows.
Fix the test for issue #6972.
Remove trailing dots on Windows.