8000 tests/micropython: Tweak ringio test for targets with terse errors. · holdenweb/micropython@52f2ba5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 52f2ba5

Browse files
committed
tests/micropython: Tweak ringio test for targets with terse errors.
Signed-off-by: Damien George <damien@micropython.org>
1 parent 1e3b242 commit 52f2ba5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/micropython/ringio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@
4545
# Size must be int.
4646
micropython.RingIO(None)
4747
except TypeError as ex:
48-
print(ex)
48+
print(type(ex))

tests/micropython/ringio.py.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ b'\x00\x01\x00\x01\x00\x01\x00\x01\x00\x01\x00\x01\x00\x01\x00\x01'
1313
16
1414
0
1515
b'\x00\x01\x00\x01\x00\x01\x00\x01\x00\x01\x00\x01\x00\x01\x00\x01'
16-
can't convert NoneType to int
16+
<class 'TypeError'>

0 commit comments

Comments
 (0)
0