2015-02-09 12:16:56 +00:00
|
|
|
from __future__ import absolute_import, division, print_function
|
|
|
|
|
2017-09-17 14:22:49 +00:00
|
|
|
import sys
|
2017-11-26 21:18:07 +00:00
|
|
|
|
2018-06-17 11:32:48 +00:00
|
|
|
from hypothesis import HealthCheck, settings
|
|
|
|
|
|
|
|
|
|
|
|
def pytest_configure(config):
|
|
|
|
# HealthCheck.too_slow causes more trouble than good -- especially in CIs.
|
|
|
|
settings.register_profile(
|
|
|
|
"patience", settings(suppress_health_check=[HealthCheck.too_slow])
|
|
|
|
)
|
|
|
|
settings.load_profile("patience")
|
|
|
|
|
2015-02-09 12:16:56 +00:00
|
|
|
|
2017-09-17 14:22:49 +00:00
|
|
|
collect_ignore = []
|
|
|
|
if sys.version_info[:2] < (3, 6):
|
2018-06-10 17:40:07 +00:00
|
|
|
collect_ignore.extend(
|
2020-08-17 14:22:33 +00:00
|
|
|
[
|
|
|
|
"tests/test_annotations.py",
|
2020-10-15 07:33:59 +00:00
|
|
|
"tests/test_hooks.py",
|
2020-08-17 14:22:33 +00:00
|
|
|
"tests/test_init_subclass.py",
|
|
|
|
"tests/test_next_gen.py",
|
|
|
|
]
|
2018-06-10 17:40:07 +00:00
|
|
|
)
|
2021-05-18 05:02:06 +00:00
|
|
|
if sys.version_info[:2] < (3, 10):
|
|
|
|
collect_ignore.extend(["tests/test_pattern_matching.py"])
|
2021-02-22 11:56:44 +00:00
|
|
|
if sys.version_info[:2] >= (3, 10):
|
|
|
|
collect_ignore.extend(
|
|
|
|
[
|
|
|
|
"tests/test_mypy.yml",
|
|
|
|
]
|
|
|
|
)
|