Skip to content

Commit d295a0a

Browse files
authored
Merge pull request #254 from asmeurer/max-examples
Reset the max-examples default back to 100
2 parents cc565d1 + 781353b commit d295a0a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

conftest.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from functools import lru_cache
22
from pathlib import Path
33
import argparse
4-
import math
54
import warnings
65
import os
76

@@ -32,7 +31,7 @@ def pytest_addoption(parser):
3231
"--hypothesis-max-examples",
3332
"--max-examples",
3433
action="store",
35-
default=20,
34+
default=100,
3635
type=int,
3736
help="set the Hypothesis max_examples setting",
3837
)
@@ -157,7 +156,7 @@ def pytest_collection_modifyitems(config, items):
157156

158157
disabled_exts = config.getoption("--disable-extension")
159158
disabled_dds = config.getoption("--disable-data-dependent-shapes")
160-
unvectorized_max_examples = math.ceil(math.log(config.getoption("--hypothesis-max-examples")))
159+
unvectorized_max_examples = config.getoption("--hypothesis-max-examples")//10
161160

162161
# 2. Iterate through items and apply markers accordingly
163162
# ------------------------------------------------------

0 commit comments

Comments
 (0)