TST: Testing bug in reading json/msgpack from a non-filepath on windows under py3 (GH5874)

closes #5874