Skip to content

Commit 24b51a2

Browse files
committed
Fix non_compliant test
1 parent 508b064 commit 24b51a2

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

tests/misc/non_compliant.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,12 @@
105105
except NotImplementedError:
106106
print("NotImplementedError")
107107

108+
# CIRCUITPY-CHANGE: We do check these.
108109
# struct pack with too many args, not checked by uPy
109-
print(struct.pack("bb", 1, 2, 3))
110+
# print(struct.pack("bb", 1, 2, 3))
110111

111112
# struct pack with too few args, not checked by uPy
112-
print(struct.pack("bb", 1))
113+
# print(struct.pack("bb", 1))
113114

114115
# array slice assignment with unsupported RHS
115116
try:

tests/misc/non_compliant.py.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ NotImplementedError
55
NotImplementedError
66
TypeError, ValueError
77
NotImplementedError
8-
TypeError
8+
NotImplementedError
99
NotImplementedError
1010
NotImplementedError
1111
NotImplementedError

0 commit comments

Comments
 (0)