diff options
author | Damien George <damien.p.george@gmail.com> | 2014-06-28 10:27:15 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-06-28 10:27:15 +0100 |
commit | b3a50f0f3e287d63fce274e29641a3bc57405d5d (patch) | |
tree | 1db867d2e5c40d9cd530424c022768f6f282251f /tests | |
parent | ed07d035d52764b3b02bfa8488f2e0445c28ea2f (diff) | |
parent | 8993fb6cf0677ce980ab56cbad326e4e6bc47811 (diff) | |
download | micropython-b3a50f0f3e287d63fce274e29641a3bc57405d5d.tar.gz micropython-b3a50f0f3e287d63fce274e29641a3bc57405d5d.zip |
Merge branch 'master' into unicode
Conflicts:
py/mpconfig.h
Diffstat (limited to 'tests')
-rw-r--r-- | tests/misc/recursive_data.py_ | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/misc/recursive_data.py_ b/tests/misc/recursive_data.py_ new file mode 100644 index 0000000000..6a52a3c0e8 --- /dev/null +++ b/tests/misc/recursive_data.py_ @@ -0,0 +1,9 @@ +# 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. +l = [1, 2, 3, None] +l[-1] = l +try: + print(l) +except RuntimeError: + print("RuntimeError") |