Very late contribution but I got into similar problem today.
In my case, the fixture somefixture was paramatrized with pytest.param(a_param, marks=[pytest.mark.myplatform]. So it was collected as well.
somefixture
pytest.param(a_param, marks=[pytest.mark.myplatform]