31 lines
913 B
Diff
31 lines
913 B
Diff
From ea76ee82eba1700e1143022050b368460fc9cd7f Mon Sep 17 00:00:00 2001
|
|
From: Alex Gaynor <alex.gaynor@gmail.com>
|
|
Date: Sun, 3 Dec 2017 20:43:38 -0600
|
|
Subject: [PATCH 01/73] Don't emit warnings here, there's no point (#137)
|
|
|
|
* Don't emit warnings here, there's no point
|
|
|
|
* whoops here
|
|
---
|
|
tests/test_bcrypt.py | 4 +++-
|
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/tests/test_bcrypt.py b/tests/test_bcrypt.py
|
|
index 7ad40f7..3f00875 100644
|
|
--- a/tests/test_bcrypt.py
|
|
+++ b/tests/test_bcrypt.py
|
|
@@ -400,7 +400,9 @@ def test_checkpw_extra_data():
|
|
b"\x43\x66\x6c\x9b\x09\xef\x33\xed\x8c\x27\xe8\xe8\xf3\xe2\xd8\xe6"
|
|
]])
|
|
def test_kdf(rounds, password, salt, expected):
|
|
- derived = bcrypt.kdf(password, salt, len(expected), rounds)
|
|
+ derived = bcrypt.kdf(
|
|
+ password, salt, len(expected), rounds, ignore_few_rounds=True
|
|
+ )
|
|
assert derived == expected
|
|
|
|
|
|
--
|
|
2.23.0
|
|
|