summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2024-10-18 23:13:06 +1100
committerDamien George <damien@micropython.org>2024-10-22 14:31:13 +1100
commit52f2ba5677cb56b0622ac0d615f0c13916cd24c5 (patch)
tree0ba22dc07c47bc730c27b6db6f4b2624ebfd4f16
parent1e3b24238ee35d16e1aee8244423fb7cec91f618 (diff)
tests/micropython: Tweak ringio test for targets with terse errors.
Signed-off-by: Damien George <damien@micropython.org>
-rw-r--r--tests/micropython/ringio.py2
-rw-r--r--tests/micropython/ringio.py.exp2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/micropython/ringio.py b/tests/micropython/ringio.py
index 45774bc2e..a0102ef63 100644
--- a/tests/micropython/ringio.py
+++ b/tests/micropython/ringio.py
@@ -45,4 +45,4 @@ try:
# Size must be int.
micropython.RingIO(None)
except TypeError as ex:
- print(ex)
+ print(type(ex))
diff --git a/tests/micropython/ringio.py.exp b/tests/micropython/ringio.py.exp
index b27ea472c..65bae0647 100644
--- a/tests/micropython/ringio.py.exp
+++ b/tests/micropython/ringio.py.exp
@@ -13,4 +13,4 @@ b'\x00\x01\x00\x01\x00\x01\x00\x01\x00\x01\x00\x01\x00\x01\x00\x01'
16
0
b'\x00\x01\x00\x01\x00\x01\x00\x01\x00\x01\x00\x01\x00\x01\x00\x01'
-can't convert NoneType to int
+<class 'TypeError'>