Skip to content

Pytest fails reimporting hypothesis. #7810

@charris

Description

@charris

The NumPy CI tests fail if pytest is bumped from 6.0.2 to 6.1.0. The error message is

pytest.PytestAssertRewriteWarning: Module already imported so cannot be rewritten: hypothesis

See https://travis-ci.org/github/numpy/numpy/jobs/730868650 for an example. Note that NumPy fails on warnings. I also see this warning when running tests locally where it is ignored.

  • a detailed description of the bug or problem you are having
  • output of pip list from the virtual environment you are using
  • pytest and operating system versions
  • minimal example if possible

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions