Bypass Python tests not supported by -builtin

The old static syntax (e.g., dc.new_A() rather than dc.A()) is not
supported with -builtin
This commit is contained in:
William S Fulton 2014-10-02 20:23:08 +01:00
commit afcd61388a
3 changed files with 11 additions and 4 deletions

View file

@ -88,7 +88,6 @@ include $(srcdir)/../common.mk
BUILTIN_BROKEN = \
autodoc.cpptest \
default_constructor.cpptest \
import_nomodule.cpptest \
python_abstractbase.cpptest \

View file

@ -1,8 +1,10 @@
import _default_constructor
# This test is expected to fail with -builtin option.
# It uses the old static syntax (e.g., dc.new_A() rather than dc.A()),
# which is not provided with the -builtin option.
import _default_constructor
if _default_constructor.is_python_builtin():
exit(0)
dc = _default_constructor