diff options
Diffstat (limited to 'test/SWIG/build-dir.py')
-rw-r--r-- | test/SWIG/build-dir.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/test/SWIG/build-dir.py b/test/SWIG/build-dir.py index eba3fea..d268c87 100644 --- a/test/SWIG/build-dir.py +++ b/test/SWIG/build-dir.py @@ -29,7 +29,6 @@ Make sure SWIG works when a VariantDir (or variant_dir) is used. Test case courtesy Joe Maruszewski. """ -import os.path import sys import TestSCons @@ -50,10 +49,7 @@ else: test.subdir(['source']) python, python_include, python_libpath, python_lib = \ - test.get_platform_python_info() -Python_h = os.path.join(python_include, 'Python.h') -if not os.path.exists(Python_h): - test.skip_test('Can not find %s, skipping test.\n' % Python_h) + test.get_platform_python_info(python_h_required=True) if sys.platform == 'win32' and sys.maxsize <= 2**32: swig_arch_var="TARGET_ARCH='x86'," |