Skip to content
Snippets Groups Projects
Commit 074597f1 authored by Damien George's avatar Damien George
Browse files

tests/extmod/uctypes_error: Add test for unsupported unary op.

parent 0de6815e
No related branches found
No related tags found
No related merge requests found
...@@ -35,3 +35,9 @@ try: ...@@ -35,3 +35,9 @@ try:
S.x = 1 S.x = 1
except TypeError: except TypeError:
print('TypeError') print('TypeError')
# unsupported unary op
try:
hash(S)
except TypeError:
print('TypeError')
...@@ -2,3 +2,4 @@ TypeError ...@@ -2,3 +2,4 @@ TypeError
TypeError TypeError
TypeError TypeError
TypeError TypeError
TypeError
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment