Skip to content

Update from 4.0.2 to 4.1.0 broke all tests #4610

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
CrimsonGlory opened this issue Jan 7, 2019 · 2 comments
Closed

Update from 4.0.2 to 4.1.0 broke all tests #4610

CrimsonGlory opened this issue Jan 7, 2019 · 2 comments

Comments

@CrimsonGlory
Copy link

On circleci, inside python:2.7 image, all tests started to fail with the same error after update from pytest 4.0.2 to 4.1.0 (other modules installed are pytest-cov-2.6.0 pytest-timeout-1.3.3)

self = <pytest_cov.plugin.CovPlugin object at 0x7f20a78e6110>
item = <Function test_cg_1366>

    @compat.hookwrapper
    def pytest_runtest_call(self, item):
>       if (item.get_marker('no_cover')
                or 'no_cover' in getattr(item, 'fixturenames', ())):
E               AttributeError: 'Function' object has no attribute 'get_marker'

/usr/local/lib/python2.7/site-packages/pytest_cov/plugin.py:289: AttributeError
@CrimsonGlory
Copy link
Author

Seem this is fixed in pytest-cov repo and waiting to be released.
pytest-dev/pytest-cov#254
pytest-dev/pytest-cov#253

@Zac-HD
Copy link
Member

Zac-HD commented Jan 7, 2019

And now released as pytest-cov=2.6.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants