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

This commit is contained in:
Damien George 2018-12-10 14:29:41 +11:00
parent 0de6815ec1
commit 074597f172
2 changed files with 7 additions and 0 deletions

View File

@ -35,3 +35,9 @@ try:
S.x = 1
except TypeError:
print('TypeError')
# unsupported unary op
try:
hash(S)
except TypeError:
print('TypeError')

View File

@ -2,3 +2,4 @@ TypeError
TypeError
TypeError
TypeError
TypeError