Skip to content

Newer versions of pytest are failing because of multiple hypothesis imports. #17390

@charris

Description

@charris

The CI tests fail for newer pytest on account of a pytest warning, see https://travis-ci.org/github/numpy/numpy/jobs/730868650 and pytest-dev/pytest#7810. If I comment out hypothesis related code in numpy/_pytesttester.py the warning goes away. The other place hypothesis is imported is numpy/configtest.py. I seems we need to get rid of one of the imports.

Reproducing code example:

import numpy as np
<< your code here >>

Error message:

NumPy/Python version information:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions