summaryrefslogtreecommitdiffstatshomepage
path: root/tests/float/float1.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/float/float1.py')
-rw-r--r--tests/float/float1.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/float/float1.py b/tests/float/float1.py
index 0e115032b6..93f6f014c4 100644
--- a/tests/float/float1.py
+++ b/tests/float/float1.py
@@ -75,6 +75,11 @@ try:
except ZeroDivisionError:
print("ZeroDivisionError")
+try:
+ 0.0 ** -1
+except ZeroDivisionError:
+ print("ZeroDivisionError")
+
# unsupported unary ops
try: