circuitpython/tests/float/int_divzero.py
Damien George ab2923dfa1 all: Update Python formatting to latest Black version 22.1.0.
Signed-off-by: Damien George <damien@micropython.org>
2022-02-02 16:49:55 +11:00

10 lines
145 B
Python

try:
1 / 0
except ZeroDivisionError:
print("ZeroDivisionError")
try:
0**-1
except ZeroDivisionError:
print("ZeroDivisionError")