tests: Add test for implicit float to int conversion (not allowed!)

This commit is contained in:
Paul Sokolovsky 2014-04-01 13:47:39 +03:00
parent e09320adb5
commit 51413c8cb6
1 changed files with 5 additions and 0 deletions

View File

@ -20,3 +20,8 @@ print(x)
print(x[1:])
print(x[:-1])
print(x[2:3])
try:
print(x[1.0])
except TypeError:
print("TypeError")