From c33ef91143c93fa7d59214f88fd5954b1bb3df09 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Tue, 15 Jan 2019 23:56:42 -0600 Subject: turn off hypothesis deadlines, enforced by default in 4.0 (#4696) we don't care about exceeding a deadline in CI because our infra has wild variability and this can just randomly happen. --- tests/hypothesis/test_fernet.py | 2 +- tests/hypothesis/test_padding.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/hypothesis/test_fernet.py b/tests/hypothesis/test_fernet.py index 53e7c54e..75195f53 100644 --- a/tests/hypothesis/test_fernet.py +++ b/tests/hypothesis/test_fernet.py @@ -8,7 +8,7 @@ from hypothesis.strategies import binary from cryptography.fernet import Fernet -@settings(suppress_health_check=[HealthCheck.too_slow]) +@settings(suppress_health_check=[HealthCheck.too_slow], deadline=None) @given(binary()) def test_fernet(data): f = Fernet(Fernet.generate_key()) diff --git a/tests/hypothesis/test_padding.py b/tests/hypothesis/test_padding.py index fa06bb7b..74a58eb8 100644 --- a/tests/hypothesis/test_padding.py +++ b/tests/hypothesis/test_padding.py @@ -8,7 +8,7 @@ from hypothesis.strategies import binary, integers from cryptography.hazmat.primitives.padding import ANSIX923, PKCS7 -@settings(suppress_health_check=[HealthCheck.too_slow]) +@settings(suppress_health_check=[HealthCheck.too_slow], deadline=None) @given(integers(min_value=1, max_value=255), binary()) def test_pkcs7(block_size, data): # Generate in [1, 31] so we can easily get block_size in bits by -- cgit v1.2.3