python-hpack/healthcheck.patch
Matej Cepl aaa39837a0 - Upgrade to 4.0.0:
- remove pytest5.patch, which was included in the upstream tarball.
  - support for Python < 3.6 (including 2.7) has been removed.
  - support for Python 3.8 has been added.
  - Performance improvement of static header search. Use dict search
    instead of linear search.
  - Fix debug output of headers during encoding.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hpack?expand=0&rev=18
2020-12-15 21:39:09 +00:00

28 lines
815 B
Diff

--- a/test/test_hpack.py
+++ b/test/test_hpack.py
@@ -2,7 +2,7 @@
import itertools
import pytest
-from hypothesis import given
+from hypothesis import given, settings, HealthCheck
from hypothesis.strategies import text, binary, sets, one_of
from hpack import (
@@ -760,6 +760,7 @@ class TestDictToIterable:
binary().filter(lambda k: k and not k.startswith(b':'))
)
+ @settings(suppress_health_check=[HealthCheck.too_slow])
@given(
special_keys=sets(keys),
boring_keys=sets(keys),
@@ -797,6 +798,7 @@ class TestDictToIterable:
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),