diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-04-01 13:47:39 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-04-01 13:50:16 +0300 |
commit | 51413c8cb63bfdc4fba3f0a144459b0082ce2bf2 (patch) | |
tree | e0f743773e118012025ee4b30d0e193570c2104e | |
parent | e09320adb5c2ae849ca8fdf3b4d71e4d32965be7 (diff) | |
download | micropython-51413c8cb63bfdc4fba3f0a144459b0082ce2bf2.tar.gz micropython-51413c8cb63bfdc4fba3f0a144459b0082ce2bf2.zip |
tests: Add test for implicit float to int conversion (not allowed!)
-rw-r--r-- | tests/basics/list1.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/basics/list1.py b/tests/basics/list1.py index 8dc3939dd6..122f61d493 100644 --- a/tests/basics/list1.py +++ b/tests/basics/list1.py @@ -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") |