diff options
author | Damien George <damien@micropython.org> | 2021-05-30 09:42:27 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2021-05-30 13:41:37 +1000 |
commit | 025e4b6fbc32cd3118a5519cf6a18aa04b045abe (patch) | |
tree | e5c742abc37c46d30d1338b9ce4db399d0eb5713 /tests/basics/op_error.py | |
parent | 486fe71c6ee3fbc4bbebf348832e88880b8a5bae (diff) |
tests/basics: Split out literal tests that raise SyntaxWarning on CPy.
Fixes issue #7330.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tests/basics/op_error.py')
-rw-r--r-- | tests/basics/op_error.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/tests/basics/op_error.py b/tests/basics/op_error.py index 63c35db3f..98a3ab025 100644 --- a/tests/basics/op_error.py +++ b/tests/basics/op_error.py @@ -30,18 +30,10 @@ except TypeError: # unsupported subscription try: - 1[0] -except TypeError: - print('TypeError') -try: 1[0] = 1 except TypeError: print('TypeError') try: - ''[''] -except TypeError: - print('TypeError') -try: 'a'[0] = 1 except TypeError: print('TypeError') @@ -50,12 +42,6 @@ try: except TypeError: print('TypeError') -# not callable -try: - 1() -except TypeError: - print('TypeError') - # not an iterator try: next(1) |