Fix test_capi for Windows: strip newline characters

Fix test_no_FatalError_infinite_loop() introduced by r81142 (issue #3605).
1 file changed