diff options
Diffstat (limited to 'tests/basics/op_error.py')
-rw-r--r-- | tests/basics/op_error.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/basics/op_error.py b/tests/basics/op_error.py index cfd6ffa8c4..19ce04bc52 100644 --- a/tests/basics/op_error.py +++ b/tests/basics/op_error.py @@ -11,6 +11,7 @@ def test_exc(code, exc): # unsupported unary operators test_exc("~None", TypeError) +test_exc("~''", TypeError) test_exc("~[]", TypeError) test_exc("~bytearray()", TypeError) @@ -28,6 +29,8 @@ test_exc("(1 << 70) in 1", TypeError) # unsupported subscription test_exc("1[0]", TypeError) test_exc("1[0] = 1", TypeError) +test_exc("''['']", TypeError) +test_exc("'a'[0] = 1", TypeError) test_exc("del 1[0]", TypeError) # not callable |