diff options
| author | Damien George <damien.p.george@gmail.com> | 2018-04-10 14:42:42 +1000 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2018-04-10 14:43:52 +1000 |
| commit | 5ad27d4b8bb248954d98178e068a382599dadfa6 (patch) | |
| tree | 0b9827eefb7d588728fb57325d87cd0bb896357d /tests/stress/recursive_data.py | |
| parent | 605fdcf754c2c3f80f71e2dc83dcb3a4e74e5d95 (diff) | |
tests: Move recursive tests to the tests/stress/ subdir.
Keeping all the stress related tests in one place makes it easier to
stress-test a given port, and to also not run such tests on ports that
can't handle them.
Diffstat (limited to 'tests/stress/recursive_data.py')
| -rw-r--r-- | tests/stress/recursive_data.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/stress/recursive_data.py b/tests/stress/recursive_data.py new file mode 100644 index 000000000..3b7fa5095 --- /dev/null +++ b/tests/stress/recursive_data.py @@ -0,0 +1,13 @@ +# This tests that printing recursive data structure doesn't lead to segfault. +try: + import uio as io +except ImportError: + print("SKIP") + raise SystemExit + +l = [1, 2, 3, None] +l[-1] = l +try: + print(l, file=io.StringIO()) +except RuntimeError: + print("RuntimeError") |
