Skip to content

Commit 39ba8fe

Browse files
committed
tests/micropython/ringio_big.py: Print results at end of test.
So it can be properly skipped. Signed-off-by: Damien George <damien@micropython.org>
1 parent c28b353 commit 39ba8fe

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

tests/micropython/ringio_big.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
print("SKIP")
99
raise SystemExit
1010

11+
result = []
12+
1113
try:
1214
# The maximum possible size
1315
micropython.RingIO(bytearray(65535))
@@ -17,13 +19,15 @@
1719
# Buffer may not be too big
1820
micropython.RingIO(bytearray(65536))
1921
except ValueError as ex:
20-
print(type(ex))
22+
result.append(type(ex))
2123

2224
try:
2325
# Size may not be too big
2426
micropython.RingIO(65535)
2527
except ValueError as ex:
26-
print(type(ex))
28+
result.append(type(ex))
2729
except MemoryError:
2830
print("SKIP")
2931
raise SystemExit
32+
33+
print(result)
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
<class 'ValueError'>
2-
<class 'ValueError'>
1+
[<class 'ValueError'>, <class 'ValueError'>]

0 commit comments

Comments
 (0)