diff --git a/conftest.py b/conftest.py index 4952bcee..dcb5ea27 100644 --- a/conftest.py +++ b/conftest.py @@ -1,7 +1,6 @@ from functools import lru_cache from pathlib import Path import argparse -import math import warnings import os @@ -23,7 +22,7 @@ def pytest_addoption(parser): "--hypothesis-max-examples", "--max-examples", action="store", - default=20, + default=100, type=int, help="set the Hypothesis max_examples setting", ) @@ -148,7 +147,7 @@ def pytest_collection_modifyitems(config, items): disabled_exts = config.getoption("--disable-extension") disabled_dds = config.getoption("--disable-data-dependent-shapes") - unvectorized_max_examples = math.ceil(math.log(config.getoption("--hypothesis-max-examples"))) + unvectorized_max_examples = config.getoption("--hypothesis-max-examples")//10 # 2. Iterate through items and apply markers accordingly # ------------------------------------------------------