mirror of
https://github.com/openwrt/packages.git
synced 2026-04-15 10:51:55 +00:00
python-aiosignal: bump to 1.4.0
Changelog: https://github.com/aio-libs/aiosignal/blob/master/CHANGES.rst Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
This commit is contained in:
committed by
Alexandru Ardelean
parent
349bf45ee1
commit
b8baf2c207
@@ -8,11 +8,11 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=python-aiosignal
|
||||
PKG_VERSION:=1.3.1
|
||||
PKG_VERSION:=1.4.0
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PYPI_NAME:=aiosignal
|
||||
PKG_HASH:=54cd96e15e1649b75d6c87526a6ff0b6c1b0dd3459f43d9ca11d48c339b68cfc
|
||||
PKG_HASH:=f47eecd9468083c2029cc99945502cb7708b082c232f9aca65da147157b251c7
|
||||
|
||||
PKG_LICENSE:=Apache-2.0
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
|
||||
29
lang/python/python-aiosignal/test.sh
Executable file
29
lang/python/python-aiosignal/test.sh
Executable file
@@ -0,0 +1,29 @@
|
||||
#!/bin/sh
|
||||
|
||||
[ "$1" = python3-aiosignal ] || exit 0
|
||||
|
||||
python3 - << 'EOF'
|
||||
|
||||
from aiosignal import Signal
|
||||
|
||||
# Test Signal creation and basic list operations
|
||||
sig = Signal(owner=object())
|
||||
assert len(sig) == 0
|
||||
|
||||
callback = lambda: None
|
||||
sig.append(callback)
|
||||
assert len(sig) == 1
|
||||
assert sig[0] is callback
|
||||
|
||||
# Test freeze
|
||||
sig.freeze()
|
||||
assert sig.frozen
|
||||
|
||||
# Test that frozen signal raises on modification
|
||||
try:
|
||||
sig.append(lambda: None)
|
||||
assert False, "should have raised"
|
||||
except RuntimeError:
|
||||
pass
|
||||
|
||||
EOF
|
||||
Reference in New Issue
Block a user