summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/int1.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basics/int1.py')
-rw-r--r--tests/basics/int1.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/basics/int1.py b/tests/basics/int1.py
index fd9902f935..f4e4c3f096 100644
--- a/tests/basics/int1.py
+++ b/tests/basics/int1.py
@@ -81,3 +81,9 @@ test('1 1', 16)
# check that we don't parse this as a floating point number
print(0x1e+1)
+
+# can't convert list to int
+try:
+ int([])
+except TypeError:
+ print("TypeError")