mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-03 04:37:06 -08:00
Hypothesis health checks are of no use to Gentoo users, and needlessly cause tests to fail, possibly due to bugs in Hypothesis itself. Disable them. Signed-off-by: Michał Górny <mgorny@gentoo.org>
22 lines
549 B
Diff
22 lines
549 B
Diff
diff --git a/test/conftest.py b/test/conftest.py
|
|
index f5801da..c5e3c66 100644
|
|
--- a/test/conftest.py
|
|
+++ b/test/conftest.py
|
|
@@ -4,11 +4,16 @@ import os
|
|
import json
|
|
import sys
|
|
|
|
+from hypothesis import settings, HealthCheck
|
|
from hypothesis.strategies import text
|
|
|
|
if sys.version_info[0] == 2:
|
|
from codecs import open
|
|
|
|
+settings.register_profile("gentoo",
|
|
+ suppress_health_check=(HealthCheck.too_slow,))
|
|
+settings.load_profile("gentoo")
|
|
+
|
|
# We need to grab one text example from hypothesis to prime its cache.
|
|
text().example()
|
|
|