commit:     c902106e6752c0dad27fb1760c2d78ee03f7ead5
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Tue Dec  3 23:17:45 2019 +0000
Commit:     Aaron Bauman <bman <AT> gentoo <DOT> org>
CommitDate: Wed Dec  4 00:51:29 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c902106e

dev-python/pynacl: Fix tests with >=dev-python/hypothesis-4.0.0

Closes: https://bugs.gentoo.org/701936
Package-Manager: Portage-2.3.80, Repoman-2.3.19
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
Signed-off-by: Aaron Bauman <bman <AT> gentoo.org>

 .../pynacl/files/pynacl-1.3.0-hypothesis-4.patch   | 29 ++++++++++++++++++++++
 dev-python/pynacl/pynacl-1.3.0.ebuild              |  2 ++
 2 files changed, 31 insertions(+)

diff --git a/dev-python/pynacl/files/pynacl-1.3.0-hypothesis-4.patch 
b/dev-python/pynacl/files/pynacl-1.3.0-hypothesis-4.patch
new file mode 100644
index 00000000000..9b7a5a905d4
--- /dev/null
+++ b/dev-python/pynacl/files/pynacl-1.3.0-hypothesis-4.patch
@@ -0,0 +1,29 @@
+From af2d8c241872318baba42d7f5fbfb1869de91baa Mon Sep 17 00:00:00 2001
+From: Valentin Heidelberger <git...@valentinsblog.com>
+Date: Thu, 27 Sep 2018 22:36:34 +0200
+Subject: [PATCH] Remove average_size hypothesis setting from test_bindings.py
+
+---
+ tests/test_bindings.py | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/tests/test_bindings.py b/tests/test_bindings.py
+index 22930cc7..d7951a21 100644
+--- a/tests/test_bindings.py
++++ b/tests/test_bindings.py
+@@ -306,7 +306,6 @@ def test_unpad_not_padded():
+ 
+ 
+ @given(binary(min_size=0,
+-              average_size=128,
+               max_size=2049),
+        integers(min_value=16,
+                 max_value=256)
+@@ -320,7 +319,6 @@ def test_pad_sizes(msg, bl_sz):
+ 
+ 
+ @given(binary(min_size=0,
+-              average_size=128,
+               max_size=2049),
+        integers(min_value=16,
+                 max_value=256)

diff --git a/dev-python/pynacl/pynacl-1.3.0.ebuild 
b/dev-python/pynacl/pynacl-1.3.0.ebuild
index ce1ea9dec3e..391ddc75589 100644
--- a/dev-python/pynacl/pynacl-1.3.0.ebuild
+++ b/dev-python/pynacl/pynacl-1.3.0.ebuild
@@ -27,6 +27,8 @@ DEPEND="${RDEPEND}
                >=dev-python/pytest-3.2.1[${PYTHON_USEDEP}] )
 "
 
+PATCHES=( "${FILESDIR}/${P}-hypothesis-4.patch" )
+
 src_prepare() {
        # For not using the bundled libsodium
        export SODIUM_INSTALL=system

Reply via email to