kopia lustrzana https://github.com/micropython/micropython-lib
tools\ci.sh: Add test_enum.py to the CI.
Signed-off-by: Ihor Nehrutsa <Ihor.Nehrutsa@gmail.com>pull/980/head
rodzic
8edf766ffc
commit
6ab2ebe906
|
@ -1,3 +1,3 @@
|
||||||
metadata(version="0.0.1")
|
metadata(version="1.0.0")
|
||||||
|
|
||||||
module("enum.py")
|
module("enum.py")
|
||||||
|
|
|
@ -83,4 +83,9 @@ print(
|
||||||
assert int(str(State(State.Ready))) == State.Ready
|
assert int(str(State(State.Ready))) == State.Ready
|
||||||
assert int(str(State(State.Ready))) != State.Disabled
|
assert int(str(State(State.Ready))) != State.Disabled
|
||||||
print("will raise exception")
|
print("will raise exception")
|
||||||
del state.Triggered
|
try:
|
||||||
|
del state.Triggered
|
||||||
|
except Exception as e:
|
||||||
|
print("Exception:", e)
|
||||||
|
|
||||||
|
print("OK")
|
|
@ -54,7 +54,7 @@ function ci_package_tests_run {
|
||||||
python-stdlib/base64/test_base64.py \
|
python-stdlib/base64/test_base64.py \
|
||||||
python-stdlib/binascii/test_binascii.py \
|
python-stdlib/binascii/test_binascii.py \
|
||||||
python-stdlib/collections-defaultdict/test_defaultdict.py \
|
python-stdlib/collections-defaultdict/test_defaultdict.py \
|
||||||
python-stdlib/enum/enum_test.py \
|
python-stdlib/enum/test_enum.py \
|
||||||
python-stdlib/functools/test_partial.py \
|
python-stdlib/functools/test_partial.py \
|
||||||
python-stdlib/functools/test_reduce.py \
|
python-stdlib/functools/test_reduce.py \
|
||||||
python-stdlib/heapq/test_heapq.py \
|
python-stdlib/heapq/test_heapq.py \
|
||||||
|
|
Ładowanie…
Reference in New Issue