Fix test for Windows

Closes gh-3020
Merge pull request #3022 from takluyver/i3020

Fix test for Windows

Closes #3020