summaryrefslogtreecommitdiff
path: root/Examples/test-suite/python/default_constructor_runme.py
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite/python/default_constructor_runme.py')
-rw-r--r--Examples/test-suite/python/default_constructor_runme.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Examples/test-suite/python/default_constructor_runme.py b/Examples/test-suite/python/default_constructor_runme.py
index 59b130559..e6532031b 100644
--- a/Examples/test-suite/python/default_constructor_runme.py
+++ b/Examples/test-suite/python/default_constructor_runme.py
@@ -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