summaryrefslogtreecommitdiffstats
path: root/test/SWIG/SWIGPATH.py
diff options
context:
space:
mode:
authorGreg Noel <GregNoel@tigris.org>2009-04-18 16:56:22 (GMT)
committerGreg Noel <GregNoel@tigris.org>2009-04-18 16:56:22 (GMT)
commit588cf4a4fae059bb156ee086ff01a92b2ee025a9 (patch)
treedf97f69bcf6db6082047925e185d179fa442af55 /test/SWIG/SWIGPATH.py
parent935a23efa2fe53e9dcbf7df8e99f8ee424834f96 (diff)
downloadSCons-588cf4a4fae059bb156ee086ff01a92b2ee025a9.zip
SCons-588cf4a4fae059bb156ee086ff01a92b2ee025a9.tar.gz
SCons-588cf4a4fae059bb156ee086ff01a92b2ee025a9.tar.bz2
Modify the SWIG tests so that OS X is treated like a UNIX platform (which it
really is). OS X now not only runs all the SWIG tests (it used to skip many of them because it could not find the appropriate files), it now passes all the tests.
Diffstat (limited to 'test/SWIG/SWIGPATH.py')
-rw-r--r--test/SWIG/SWIGPATH.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/SWIG/SWIGPATH.py b/test/SWIG/SWIGPATH.py
index 4832814..30426da 100644
--- a/test/SWIG/SWIGPATH.py
+++ b/test/SWIG/SWIGPATH.py
@@ -33,12 +33,12 @@ import TestSCons
test = TestSCons.TestSCons()
swig = test.where_is('swig')
-
if not swig:
test.skip_test('Can not find installed "swig", skipping test.\n')
-_python_ = test.get_quoted_platform_python()
-
+python = test.where_is('python')
+if not python:
+ test,skip_test('Can not find installed "python", skipping test.\n')
test.subdir('inc1', 'inc2')
@@ -57,7 +57,7 @@ test.write('SConstruct', """
foo = Environment(SWIGFLAGS='-python',
SWIGPATH=['inc1', 'inc2'])
swig = foo.Dictionary('SWIG')
-bar = foo.Clone(SWIG = r'%(_python_)s wrapper.py ' + swig)
+bar = foo.Clone(SWIG = [r'%(python)s', 'wrapper.py', swig])
foo.CFile(target = 'dependent', source = ['dependent.i'])
""" % locals())