Commit 3e321f17 authored by Paul Sokolovsky's avatar Paul Sokolovsky

tests/misc/: Make few tests skippable.

parent 12d0731b
# tests for things that are not implemented, or have non-compliant behaviour
import array
import ustruct
try:
import array
import ustruct
except ImportError:
import sys
print("SKIP")
sys.exit()
# when super can't find self
try:
......
import sys
try:
import uio as io
try:
import uio as io
except ImportError:
import io
except ImportError:
import io
import sys
print("SKIP")
sys.exit()
if hasattr(sys, 'print_exception'):
print_exception = sys.print_exception
else:
......
# This tests that printing recursive data structure doesn't lead to segfault.
import uio as io
try:
import uio as io
except ImportError:
import sys
print("SKIP")
sys.exit()
l = [1, 2, 3, None]
l[-1] = l
......
# This tests that recursion with iternext doesn't lead to segfault.
try:
enumerate
filter
map
max
zip
except:
import sys
print("SKIP")
sys.exit()
# We need to pick an N that is large enough to hit the recursion
# limit, but not too large that we run out of heap memory.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment