From: Wei-Ting Yang Date: Fri, 10 Jul 2026 06:51:45 +0000 (+0800) Subject: python-asgiref: improve version check in test.sh X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=bdab2f1f5981673252a3e0135d036f62f62b1407;p=openwrt-packages.git python-asgiref: improve version check in test.sh Verify that asgiref.__version__ strictly equals the expected version argument ($2), instead of just checking that it is non-empty. Also remove single quotes from EOF to enable variable expansion. Signed-off-by: Wei-Ting Yang --- diff --git a/lang/python/python-asgiref/test.sh b/lang/python/python-asgiref/test.sh index 9c436420d..f1866bc6c 100755 --- a/lang/python/python-asgiref/test.sh +++ b/lang/python/python-asgiref/test.sh @@ -1,8 +1,8 @@ #!/bin/sh [ "$1" = python3-asgiref ] || exit 0 -python3 - << 'EOF' +python3 - << EOF import asgiref -assert asgiref.__version__, "asgiref version is empty" +assert asgiref.__version__ == "$2", "Incorrect asgiref version" from asgiref.sync import async_to_sync, sync_to_async import asyncio