lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 18.03-beta 49 lines 2.0 kB view raw
1diff --git a/tests/test_pwhash.py b/tests/test_pwhash.py 2index 9634c85..7f20316 100644 3--- a/tests/test_pwhash.py 4+++ b/tests/test_pwhash.py 5@@ -20,7 +20,7 @@ import os 6 import sys 7 import unicodedata as ud 8 9-from hypothesis import given, settings 10+from hypothesis import given, settings, unlimited 11 from hypothesis.strategies import integers, text 12 13 import pytest 14@@ -411,7 +411,7 @@ def test_str_verify_argon2_ref_fail(password_hash, password): 15 integers(min_value=1024 * 1024, 16 max_value=16 * 1024 * 1024) 17 ) 18-@settings(deadline=1500, max_examples=20) 19+@settings(timeout=unlimited, deadline=None, max_examples=20) 20 def test_argon2i_str_and_verify(password, ops, mem): 21 _psw = password.encode('utf-8') 22 pw_hash = nacl.pwhash.argon2i.str(_psw, opslimit=ops, memlimit=mem) 23@@ -425,7 +425,7 @@ def test_argon2i_str_and_verify(password, ops, mem): 24 integers(min_value=1024 * 1024, 25 max_value=16 * 1024 * 1024) 26 ) 27-@settings(deadline=1500, max_examples=20) 28+@settings(timeout=unlimited, deadline=None, max_examples=20) 29 def test_argon2id_str_and_verify(password, ops, mem): 30 _psw = password.encode('utf-8') 31 pw_hash = nacl.pwhash.argon2id.str(_psw, opslimit=ops, memlimit=mem) 32@@ -439,7 +439,7 @@ def test_argon2id_str_and_verify(password, ops, mem): 33 integers(min_value=1024 * 1024, 34 max_value=16 * 1024 * 1024) 35 ) 36-@settings(deadline=1500, max_examples=20) 37+@settings(timeout=unlimited, deadline=None, max_examples=20) 38 def test_argon2i_str_and_verify_fail(password, ops, mem): 39 _psw = password.encode('utf-8') 40 pw_hash = nacl.pwhash.argon2i.str(_psw, opslimit=ops, memlimit=mem) 41@@ -448,7 +448,7 @@ def test_argon2i_str_and_verify_fail(password, ops, mem): 42 43 44 @given(text(alphabet=PASSWD_CHARS, min_size=5, max_size=20)) 45-@settings(deadline=1500, max_examples=5) 46+@settings(timeout=unlimited, deadline=None, max_examples=5) 47 def test_pwhash_str_and_verify(password): 48 _psw = password.encode('utf-8') 49