diff options
author | Damien George <damien.p.george@gmail.com> | 2015-04-04 22:05:30 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-04-04 22:05:30 +0100 |
commit | 9dd36404646f857c4f250537bac0d9a8ad041d25 (patch) | |
tree | c6509bcd3c7d5c2e67332110c582df2b5a5c669f /tests/basics/op_error.py | |
parent | 7e758b1cf878312cab5d9d2825b36e7235ea10a3 (diff) |
tests: Add missing tests for builtins, and many other things.
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 cfd6ffa8c..19ce04bc5 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 |