summaryrefslogtreecommitdiffstatshomepage
path: root/tests/misc/recursive_data.py
blob: 0de93acb891fdc58fd884c938f13aad0c4624305 (plain) (blame)
1
2
3
4
5
6
7
8
9
# This tests that printing recursive data structure doesn't lead to segfault.
import uio as io

l = [1, 2, 3, None]
l[-1] = l
try:
    print(l, file=io.StringIO())
except RuntimeError:
    print("RuntimeError")