Skip to content
Snippets Groups Projects
Commit f42b3c75 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

tests: Activate recursive_data.py test, now that io.StringIO is available.

parent 5fba93a2
No related branches found
No related tags found
No related merge requests found
# This tests that printing recursive data structure doesn't lead to segfault.
# Unfortunately, print() so far doesn't support "file "kwarg, so variable-len
# output of this test cannot be redirected, and this test cannot be validated.
import _io as io
l = [1, 2, 3, None]
l[-1] = l
try:
print(l)
print(l, file=io.StringIO())
except RuntimeError:
print("RuntimeError")
RuntimeError
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment