tests: Add test for implicit float to int conversion (not allowed!)
This commit is contained in:
parent
e09320adb5
commit
51413c8cb6
@ -20,3 +20,8 @@ print(x)
|
|||||||
print(x[1:])
|
print(x[1:])
|
||||||
print(x[:-1])
|
print(x[:-1])
|
||||||
print(x[2:3])
|
print(x[2:3])
|
||||||
|
|
||||||
|
try:
|
||||||
|
print(x[1.0])
|
||||||
|
except TypeError:
|
||||||
|
print("TypeError")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user