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:
parent
9f1b051c16
commit
afcd61388a
3 changed files with 11 additions and 4 deletions
|
|
@ -88,7 +88,6 @@ include $(srcdir)/../common.mk
|
|||
|
||||
BUILTIN_BROKEN = \
|
||||
autodoc.cpptest \
|
||||
default_constructor.cpptest \
|
||||
import_nomodule.cpptest \
|
||||
python_abstractbase.cpptest \
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue