summaryrefslogtreecommitdiffstats
path: root/test/SWIG/recursive-includes-cpp.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/SWIG/recursive-includes-cpp.py')
-rw-r--r--test/SWIG/recursive-includes-cpp.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/test/SWIG/recursive-includes-cpp.py b/test/SWIG/recursive-includes-cpp.py
index 34c7d6e..4cb8fe5 100644
--- a/test/SWIG/recursive-includes-cpp.py
+++ b/test/SWIG/recursive-includes-cpp.py
@@ -44,11 +44,8 @@ for pre_req in ['swig', 'python']:
if not test.where_is(pre_req):
test.skip_test('Can not find installed "' + pre_req + '", skipping test.%s' % os.linesep)
-# file generated by swig will #include <Python.h>, make sure we have one
-python, py_include, py_libpath, py_lib = test.get_platform_python_info()
-Python_h = os.path.join(py_include, 'Python.h')
-if not os.path.exists(Python_h):
- test.skip_test('Can not find %s, skipping test.\n' % Python_h)
+python, python_include, python_libpath, python_lib, python_h = \
+ test.get_platform_python_info()
if sys.platform == 'win32':
python_lib = os.path.dirname(sys.executable) + "/libs/" + ('python%d%d'%(sys.version_info[0],sys.version_info[1])) + '.lib'