TST: avoid platform dependency, close #2854
Merge pull request #2857 from lodagro/issue_2854

TST: avoid platform dependency, close #2854
thanks!