Fixed travis issue with pytest.