Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Tests fail with pytest 4.1 #13121

Copy link
Copy link
Closed
Closed
Copy link
@timhoffm

Description

@timhoffm
Issue body actions

Bug report

pytest 4.1 has just been released. According to the changelog, it removes

pytest-dev/pytest#4546: Remove Node.get_marker(name) the return value was not usable for more than a existence check.

which causes our CI tests to fail:

______________________________ test_parse_header _______________________________
[gw1] linux -- Python 3.6.7 /home/travis/virtualenv/python3.6.7/bin/python
self = <pytest_cov.plugin.CovPlugin object at 0x7f551435ca58>
item = <Function test_parse_header>
    @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'
../../../virtualenv/python3.6.7/lib/python3.6/site-packages/pytest_cov/plugin.py:289: AttributeError

This is an issue with pytest-cov: pytest-dev/pytest-cov#253

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.