Fixed AppVeyor tests.

Real-world tested in one of my repos with a temporary fork on PyPI.