From 4e60ea6d3d59fbdd13402f26b843a26e884c308a Mon Sep 17 00:00:00 2001 From: Jeffery To Date: Mon, 4 Dec 2023 14:17:36 +0800 Subject: python-bcrypt: Update to 4.1.1 This also updates the test.sh script to use an assert. Signed-off-by: Jeffery To --- lang/python/python-bcrypt/test.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lang/python/python-bcrypt/test.sh') diff --git a/lang/python/python-bcrypt/test.sh b/lang/python/python-bcrypt/test.sh index 9443614f4..0f59e743f 100644 --- a/lang/python/python-bcrypt/test.sh +++ b/lang/python/python-bcrypt/test.sh @@ -2,10 +2,11 @@ [ "$1" = python3-bcrypt ] || exit 0 -python3 - << EOF -import sys +python3 - << 'EOF' + import bcrypt password = b"super secret password" hashed = bcrypt.hashpw(password, bcrypt.gensalt()) -sys.exit(0 if bcrypt.checkpw(password, hashed) else 1) +assert bcrypt.checkpw(password, hashed) + EOF -- cgit