Incompatibilty with Pytest 4.1.0
jakul opened this issue · comments
item = <TestCaseFunction test_get_events_by_policy>
def pytest_runtest_setup(item):
> if not item.get_marker('withoutresponses'):
E AttributeError: 'TestCaseFunction' object has no attribute 'get_marker'
../../../.cache/tox/app/lib/python3.6/site-packages/pytest_responses.py:8: AttributeError
get_marker
has been removed in pytest 4.1.0The pytest changelog suggests using get_closest_marker
instead.
This should be fixed by #7
@dcramer Does this PR look ok to you?
Pushing out 0.4.0