summaryrefslogtreecommitdiff
path: root/numpy/_pytesttester.py
diff options
context:
space:
mode:
authorZac-HD <zac.hatfield.dodds@gmail.com>2020-11-15 15:53:04 +1100
committerZac-HD <zac.hatfield.dodds@gmail.com>2020-11-15 15:54:07 +1100
commitba315034759fbf91c61bb55390edc86e7b2627f3 (patch)
tree0c4a93a29bd0c567847b2e63a73e02dc14845c33 /numpy/_pytesttester.py
parenta64510672cfe7a6cc67a04b8f3bf1d47a938c353 (diff)
downloadnumpy-ba315034759fbf91c61bb55390edc86e7b2627f3.tar.gz
TST: Simplify Hypothesis config
All configuration is now done in conftest.py, and detection of dev/user mode is based on the presence of pytest.ini in the repo root. See #17390.
Diffstat (limited to 'numpy/_pytesttester.py')
-rw-r--r--numpy/_pytesttester.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/numpy/_pytesttester.py b/numpy/_pytesttester.py
index f37f223fa..33fee9a14 100644
--- a/numpy/_pytesttester.py
+++ b/numpy/_pytesttester.py
@@ -140,9 +140,6 @@ class PytestTester:
import pytest
import warnings
- # Imported after pytest to enable assertion rewriting
- import hypothesis
-
module = sys.modules[self.module_name]
module_path = os.path.abspath(module.__path__[0])
@@ -205,15 +202,6 @@ class PytestTester:
pytest_args += ["--pyargs"] + list(tests)
- # This configuration is picked up by numpy.conftest, and ensures that
- # running `np.test()` is deterministic and does not write any files.
- # See https://hypothesis.readthedocs.io/en/latest/settings.html
- hypothesis.settings.register_profile(
- name="np.test() profile",
- deadline=None, print_blob=True, database=None, derandomize=True,
- suppress_health_check=hypothesis.HealthCheck.all(),
- )
-
# run tests.
_show_numpy_info()