TST: Fix test_backend_ps failures on Windows
TST: fix test errors on Python 3
Merge pull request #3249 from cgohlke/patch-1

TST: Fix test_backend_ps failures on Windows