summaryrefslogtreecommitdiffstats
path: root/test/SWIG/SWIGOUTDIR-python.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/SWIG/SWIGOUTDIR-python.py')
-rw-r--r--test/SWIG/SWIGOUTDIR-python.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/test/SWIG/SWIGOUTDIR-python.py b/test/SWIG/SWIGOUTDIR-python.py
index db0cc95..53b5bdf 100644
--- a/test/SWIG/SWIGOUTDIR-python.py
+++ b/test/SWIG/SWIGOUTDIR-python.py
@@ -30,7 +30,6 @@ that Python files are created in the specified output directory.
"""
import TestSCons
-import os
import sys
test = TestSCons.TestSCons()
@@ -39,11 +38,8 @@ swig = test.where_is('swig')
if not swig:
test.skip_test('Can not find installed "swig", skipping test.\n')
-python, python_include, python_libpath, python_lib = \
+python, python_include, python_libpath, python_lib, python_h = \
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)
# On Windows, build a 32-bit exe if on 32-bit python.
if sys.platform == 'win32' and sys.maxsize <= 2**32: