make test_filter work with Travis' old version of pytest