diff options
Diffstat (limited to 'tests/float')
| -rw-r--r-- | tests/float/complex1.py | 6 | ||||
| -rw-r--r-- | tests/float/float1.py | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/float/complex1.py b/tests/float/complex1.py index ebe4b0f37..027d12583 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 diff --git a/tests/float/float1.py b/tests/float/float1.py index f21f5bcdd..0e115032b 100644 --- a/tests/float/float1.py +++ b/tests/float/float1.py @@ -87,6 +87,12 @@ try: except TypeError: print("TypeError") +# small int on LHS, float on RHS, unsupported op +try: + print(1 | 1.0) +except TypeError: + print('TypeError') + # can't convert list to float try: float([]) |
