hypothesis 4 support (#1704924)
This commit is contained in:
parent
9ba168810f
commit
36c1895f29
|
@ -0,0 +1,29 @@
|
|||
From af2d8c241872318baba42d7f5fbfb1869de91baa Mon Sep 17 00:00:00 2001
|
||||
From: Valentin Heidelberger <github@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)
|
|
@ -12,6 +12,9 @@ License: ASL 2.0
|
|||
URL: https://github.com/pyca/pynacl
|
||||
Source0: %{url}/archive/%{version}/%{modname}-%{version}.tar.gz
|
||||
|
||||
# hypothesis 4 support
|
||||
Patch1: %{url}/pull/480.patch
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: libsodium-devel
|
||||
|
||||
|
@ -55,7 +58,7 @@ BuildRequires: python3-hypothesis >= 3.27.0
|
|||
Python 3 version.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{modname}-%{version}
|
||||
%autosetup -p1 -n %{modname}-%{version}
|
||||
# Remove bundled libsodium, to be sure
|
||||
rm -vrf src/libsodium/
|
||||
|
||||
|
|
Loading…
Reference in New Issue