# This tests that printing recursive data structure doesn't lead to segfault.
try:
import uio as io
except ImportError:
import sys
print("SKIP")
sys.exit()
l = [1, 2, 3, None]
l[-1] = l
print(l, file=io.StringIO())
except RuntimeError:
print("RuntimeError")