mirror of
https://github.com/pocketpy/pocketpy
synced 2026-02-04 06:30:17 +00:00
add test
This commit is contained in:
parent
ef06103fa2
commit
1c0daadb18
@ -210,7 +210,9 @@ try:
|
||||
try:
|
||||
result = 10 / 0
|
||||
except (ZeroDivisionError, 1) as e:
|
||||
assert type(e) == ZeroDivisionError
|
||||
assert False
|
||||
except (TypeError) as e:
|
||||
assert False
|
||||
except Exception as e:
|
||||
assert type(e) == TypeError
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user