getsentry / pytest-responses

py.test integration for responses

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

https://docs.pytest.org/en/latest/changelog.html

This should be fixed by #7

@dcramer Does this PR look ok to you?

@dcramer can #9 be released? Should be able to close this issue

Pushing out 0.4.0