- add healthcheck.patch to disarm too_slow healthcheck random fails

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hpack?expand=0&rev=13
This commit is contained in:
Ondřej Súkup 2020-01-15 13:25:19 +00:00 committed by Git OBS Bridge
parent cfbfd65342
commit f2c7a5a35d
3 changed files with 29 additions and 2 deletions

21
healthcheck.patch Normal file
View File

@ -0,0 +1,21 @@
Index: hpack-3.0.0/test/test_hpack.py
===================================================================
--- hpack-3.0.0.orig/test/test_hpack.py
+++ hpack-3.0.0/test/test_hpack.py
@@ -8,7 +8,7 @@ from hpack.struct import HeaderTuple, Ne
import itertools
import pytest
-from hypothesis import given
+from hypothesis import given, settings, HealthCheck
from hypothesis.strategies import text, binary, sets, one_of
try:
@@ -786,6 +786,7 @@ class TestDictToIterable(object):
assert special_keys == received_special
assert boring_keys == received_boring
+ @settings(suppress_health_check=[HealthCheck.too_slow])
@given(
special_keys=sets(keys),
boring_keys=sets(keys),

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jan 15 13:24:22 UTC 2020 - Ondřej Súkup <mimi.vx@gmail.com>
- add healthcheck.patch to disarm too_slow healthcheck random fails
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Jul 19 09:49:33 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com> Fri Jul 19 09:49:33 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-hpack # spec file for package python-hpack
# #
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2020 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -22,9 +22,9 @@ Version: 3.0.0
Release: 0 Release: 0
Summary: Pure-Python HPACK header compression Summary: Pure-Python HPACK header compression
License: MIT License: MIT
Group: Development/Languages/Python
URL: https://github.com/python-hyper/hpack URL: https://github.com/python-hyper/hpack
Source: https://files.pythonhosted.org/packages/source/h/hpack/hpack-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/h/hpack/hpack-%{version}.tar.gz
Patch0: healthcheck.patch
BuildRequires: %{python_module hypothesis} BuildRequires: %{python_module hypothesis}
# https://github.com/python-hyper/hpack/issues/168 # https://github.com/python-hyper/hpack/issues/168
BuildRequires: %{python_module pytest < 5.0} BuildRequires: %{python_module pytest < 5.0}
@ -41,6 +41,7 @@ automatically enables the use of nghttp2 if its available.
%prep %prep
%setup -q -n hpack-%{version} %setup -q -n hpack-%{version}
%patch0 -p1
%build %build
export LC_ALL="en_US.UTF-8" export LC_ALL="en_US.UTF-8"