- 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:
parent
cfbfd65342
commit
f2c7a5a35d
21
healthcheck.patch
Normal file
21
healthcheck.patch
Normal 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),
|
@ -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>
|
||||
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user