From: Kirill Radzikhovskyy <kirillrdy@gmail.com>
Date: Sun, 23 Nov 2025 17:21:45 +1100
Subject: Fix test_long_password for bcrypt 5.0.0+ strict limit

Update test_bcrypt.py

Co-authored-by: dotlambda <github@dotlambda.de>

Origin: other, https://github.com/maxcountryman/flask-bcrypt/pull/96
Bug: https://github.com/maxcountryman/flask-bcrypt/issues/95
Bug-Debian: https://bugs.debian.org/1120247
Last-Update: 2025-12-03
---
 test_bcrypt.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test_bcrypt.py b/test_bcrypt.py
index 0ec2ffe..f215ba8 100644
--- a/test_bcrypt.py
+++ b/test_bcrypt.py
@@ -62,7 +62,7 @@ class BasicTestCase(unittest.TestCase):
         password = 'A' * 72
         pw_hash = self.bcrypt.generate_password_hash(password)
         # Ensure that a longer password yields the same hash
-        self.assertTrue(self.bcrypt.check_password_hash(pw_hash, 'A' * 80))
+        self.assertTrue(self.bcrypt.check_password_hash(pw_hash, 'A' * 72))
 
 
 class LongPasswordsTestCase(BasicTestCase):
