Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reset the max-examples default back to 100 #254

Merged
merged 3 commits into from
Jun 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 All @@ -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",
)
Expand Down Expand Up @@ -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
# ------------------------------------------------------
Expand Down
Loading