diff --git a/healthcheck.patch b/healthcheck.patch new file mode 100644 index 0000000..8c64f2e --- /dev/null +++ b/healthcheck.patch @@ -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), diff --git a/python-hpack.changes b/python-hpack.changes index 684df2f..394cdef 100644 --- a/python-hpack.changes +++ b/python-hpack.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jan 15 13:24:22 UTC 2020 - Ondřej Súkup + +- add healthcheck.patch to disarm too_slow healthcheck random fails + ------------------------------------------------------------------- Fri Jul 19 09:49:33 UTC 2019 - Tomáš Chvátal diff --git a/python-hpack.spec b/python-hpack.spec index 8610045..393e087 100644 --- a/python-hpack.spec +++ b/python-hpack.spec @@ -1,7 +1,7 @@ # # 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 # remain the property of their copyright owners, unless otherwise agreed @@ -22,9 +22,9 @@ Version: 3.0.0 Release: 0 Summary: Pure-Python HPACK header compression License: MIT -Group: Development/Languages/Python URL: https://github.com/python-hyper/hpack Source: https://files.pythonhosted.org/packages/source/h/hpack/hpack-%{version}.tar.gz +Patch0: healthcheck.patch BuildRequires: %{python_module hypothesis} # https://github.com/python-hyper/hpack/issues/168 BuildRequires: %{python_module pytest < 5.0} @@ -41,6 +41,7 @@ automatically enables the use of nghttp2 if it’s available. %prep %setup -q -n hpack-%{version} +%patch0 -p1 %build export LC_ALL="en_US.UTF-8"