TST: avoid platform dependency, close #2854