From b2c5a637287d4b34a76697d1832cfa1c804aa675 Mon Sep 17 00:00:00 2001 From: Kirill Radzikhovskyy Date: Sun, 23 Nov 2025 17:21:45 +1100 Subject: [PATCH] Fix test_long_password for bcrypt 4.2.0+ strict limit Update test_bcrypt.py Co-authored-by: dotlambda --- 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 @@ def test_long_password(self): 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):