From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/hpack/, dev-python/hpack/files/
Date: Thu, 21 Nov 2019 21:25:13 +0000 (UTC) [thread overview]
Message-ID: <1574371507.c7ac87c444c7595573a3dbd6ca460aee0f125ca4.mgorny@gentoo> (raw)
commit: c7ac87c444c7595573a3dbd6ca460aee0f125ca4
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Nov 21 20:40:37 2019 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Nov 21 21:25:07 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7ac87c4
dev-python/hpack: Disable Hypothesis health checks
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 <AT> gentoo.org>
.../files/hpack-3.0.0-hypothesis-healthcheck.patch | 21 +++++++++++++++++++++
dev-python/hpack/hpack-3.0.0.ebuild | 4 ++++
2 files changed, 25 insertions(+)
diff --git a/dev-python/hpack/files/hpack-3.0.0-hypothesis-healthcheck.patch b/dev-python/hpack/files/hpack-3.0.0-hypothesis-healthcheck.patch
new file mode 100644
index 00000000000..aaabac3b304
--- /dev/null
+++ b/dev-python/hpack/files/hpack-3.0.0-hypothesis-healthcheck.patch
@@ -0,0 +1,21 @@
+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()
+
diff --git a/dev-python/hpack/hpack-3.0.0.ebuild b/dev-python/hpack/hpack-3.0.0.ebuild
index 65570c88f59..d6235dee735 100644
--- a/dev-python/hpack/hpack-3.0.0.ebuild
+++ b/dev-python/hpack/hpack-3.0.0.ebuild
@@ -26,6 +26,10 @@ DEPEND="${RDEPEND}
)
"
+PATCHES=(
+ "${FILESDIR}"/hpack-3.0.0-hypothesis-healthcheck.patch
+)
+
python_prepare_all() {
# Remove a test that is not part of the mainstream tests
# Also, it's data directory is not included in the release
reply other threads:[~2019-11-21 21:25 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1574371507.c7ac87c444c7595573a3dbd6ca460aee0f125ca4.mgorny@gentoo \
--to=mgorny@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox