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. # This tests that printing recursive data structure doesn't lead to segfault.
# Unfortunately, print() so far doesn't support "file "kwarg, so variable-len import _io as io
# output of this test cannot be redirected, and this test cannot be validated.
l = [1, 2, 3, None] l = [1, 2, 3, None]
l[-1] = l l[-1] = l
try: try:
print(l) print(l, file=io.StringIO())
except RuntimeError: except RuntimeError:
print("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