summaryrefslogtreecommitdiffstatshomepage
path: root/tests/float/complex1.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/float/complex1.py')
-rw-r--r--tests/float/complex1.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/float/complex1.py b/tests/float/complex1.py
index ebe4b0f37c..027d12583c 100644
--- a/tests/float/complex1.py
+++ b/tests/float/complex1.py
@@ -75,6 +75,12 @@ try:
except TypeError:
print("TypeError")
+#small int on LHS, complex on RHS, unsupported op
+try:
+ print(1 | 1j)
+except TypeError:
+ print('TypeError')
+
# zero division
try:
1j / 0