Skip to content

Module already imported warning #148

Open
@jacebrowning

Description

@jacebrowning

When I run my tests using pytest==3.0.6 and pytest-cov==2.4.0, I see the following warning:

======================= pytest-warning summary ======================
WP1 None Module already imported so can not be re-written: pytest_cov
============ 1 passed, 1 pytest-warnings in 0.09 seconds ============

which unfortunately causes pytest to return a non-zero exit code and make the test suite as failing.


I don't see this warning with pytest==2.9.2.

If it helps, I found a similar issue reported in another library: pytest-dev/pytest-testinfra#125

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions