Skip to content

Commit

Permalink
Allow very slow execution of test_crypto_kx_seed_keypair_seed_too_lar…
Browse files Browse the repository at this point in the history
…ge (#481)

* Allow very slow execution of test_crypto_kx_seed_keypair_seed_too_large
  • Loading branch information
va1entin authored and lmctv committed Dec 24, 2018
1 parent 2fc1d52 commit d7e0de9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_kx.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

from __future__ import absolute_import, division, print_function

from hypothesis import given, settings
from hypothesis import HealthCheck, given, settings
from hypothesis.strategies import binary

import pytest
Expand Down Expand Up @@ -48,7 +48,9 @@ def test_crypto_kx_seed_keypair(seed1, seed2):
@given(binary(min_size=33,
max_size=128),
)
@settings(max_examples=20)
@settings(max_examples=20, suppress_health_check=[
HealthCheck.too_slow
])
def test_crypto_kx_seed_keypair_seed_too_large(seed):
with pytest.raises(exc.TypeError):
b.crypto_kx_seed_keypair(seed)
Expand Down

0 comments on commit d7e0de9

Please sign in to comment.