TST: Fix test_animation RuntimeErrors on Windows