Skip to content

Commit f42b3c7

Browse files
committed
tests: Activate recursive_data.py test, now that io.StringIO is available.
1 parent 5fba93a commit f42b3c7

3 files changed

Lines changed: 10 additions & 9 deletions

File tree

tests/misc/recursive_data.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# This tests that printing recursive data structure doesn't lead to segfault.
2+
import _io as io
3+
4+
l = [1, 2, 3, None]
5+
l[-1] = l
6+
try:
7+
print(l, file=io.StringIO())
8+
except RuntimeError:
9+
print("RuntimeError")

tests/misc/recursive_data.py.exp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
RuntimeError

tests/misc/recursive_data.py_

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)