summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorZac-HD <zac.hatfield.dodds@gmail.com>2020-01-24 16:28:16 +1100
committerZac-HD <zac.hatfield.dodds@gmail.com>2020-02-05 21:42:51 +1100
commit8eb9cfcd064a412f5757622d1da343b1730c034d (patch)
treebf40e2343c31a602886ff7f484d1d42d159010e6 /numpy
parent4b20d78b74556f0a498ffb311084aad57bb358af (diff)
downloadnumpy-8eb9cfcd064a412f5757622d1da343b1730c034d.tar.gz
Install and configure Hypothesis
Diffstat (limited to 'numpy')
-rw-r--r--numpy/conftest.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/numpy/conftest.py b/numpy/conftest.py
index a843f725f..1d3e0349f 100644
--- a/numpy/conftest.py
+++ b/numpy/conftest.py
@@ -3,6 +3,7 @@ Pytest configuration and fixtures for the Numpy test suite.
"""
import os
+import hypothesis
import pytest
import numpy
@@ -12,6 +13,12 @@ from numpy.core._multiarray_tests import get_fpu_mode
_old_fpu_mode = None
_collect_results = {}
+# See https://hypothesis.readthedocs.io/en/latest/settings.html
+hypothesis.settings.register_profile(
+ name="numpy-profile", deadline=None, print_blob=True,
+)
+hypothesis.settings.load_profile("numpy-profile")
+
def pytest_configure(config):
config.addinivalue_line("markers",