Fix test_repeated_save_with_alpha on Windows

An alternative to #2086