File: slow_health_checks.patch

package info (click to toggle)
python-nacl 1.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 14,408 kB
  • sloc: ansic: 41,345; sh: 16,028; python: 5,152; asm: 4,264; makefile: 1,136; xml: 30; pascal: 10
file content (21 lines) | stat: -rw-r--r-- 753 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Index: python-nacl-1.3.0/tests/test_kx.py
===================================================================
--- python-nacl-1.3.0.orig/tests/test_kx.py
+++ python-nacl-1.3.0/tests/test_kx.py
@@ -16,6 +16,7 @@ from __future__ import absolute_import,
 
 from hypothesis import given, settings
 from hypothesis.strategies import binary
+from hypothesis import HealthCheck
 
 import pytest
 
@@ -48,7 +49,7 @@ def test_crypto_kx_seed_keypair(seed1, s
 @given(binary(min_size=33,
               max_size=128),
        )
-@settings(max_examples=20)
+@settings(suppress_health_check=[HealthCheck.too_slow],max_examples=20)
 def test_crypto_kx_seed_keypair_seed_too_large(seed):
     with pytest.raises(exc.TypeError):
         b.crypto_kx_seed_keypair(seed)