You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
279 B
14 lines
279 B
10 years ago
|
# This tests that printing recursive data structure doesn't lead to segfault.
|
||
8 years ago
|
try:
|
||
|
import uio as io
|
||
|
except ImportError:
|
||
|
print("SKIP")
|
||
8 years ago
|
raise SystemExit
|
||
10 years ago
|
|
||
|
l = [1, 2, 3, None]
|
||
|
l[-1] = l
|
||
|
try:
|
||
|
print(l, file=io.StringIO())
|
||
|
except RuntimeError:
|
||
|
print("RuntimeError")
|