Skip to content

Commit

Permalink
Merge pull request #254 from asmeurer/max-examples
Browse files Browse the repository at this point in the history
Reset the max-examples default back to 100
  • Loading branch information
asmeurer authored Jun 5, 2024
2 parents cc565d1 + 781353b commit d295a0a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions conftest.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from functools import lru_cache
from pathlib import Path
import argparse
import math
import warnings
import os

Expand Down Expand Up @@ -32,7 +31,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",
)
Expand Down Expand Up @@ -157,7 +156,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
# ------------------------------------------------------
Expand Down

0 comments on commit d295a0a

Please sign in to comment.