Adds a kinda hacky way to skip doctests on Windows only; later a better way to do this would be to use markerlib or something like that.  This test is not expected to pass on Windows due to unavailability of in-place sorting.
Work around a strange bug that can occur on Windows with pathological array dimensions.  Not interested in trying to find out more about what's going on here unless someone brings up a real world occurance of this bug.
Ensure better consistency between OSes here by using a file:// url
Handles an issue on Windows only for Python 3.3 and up, where trying
to pass filenames as bytes to certain system calls results in a
DeprecationWarning (and maybe an error in later Python versions).

An earlier fix I had for this actually made a few attempts to decode the
bytes string.  But really, user code should not in general be passing
filenames as bytes in the first place, so I think this simpler fix is better
for now.
Merge pull request #2459 from embray/windows-tests

Fix Windows tests