mirror of
https://github.com/licsber/micropython.git
synced 2024-09-21 17:40:24 +08:00
10 lines
211 B
Python
10 lines
211 B
Python
|
# This tests that printing recursive data structure doesn't lead to segfault.
|
||
|
import _io as io
|
||
|
|
||
|
l = [1, 2, 3, None]
|
||
|
l[-1] = l
|
||
|
try:
|
||
|
print(l, file=io.StringIO())
|
||
|
except RuntimeError:
|
||
|
print("RuntimeError")
|