summaryrefslogtreecommitdiffstats
path: root/test/subdivide.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/subdivide.py')
-rw-r--r--test/subdivide.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/subdivide.py b/test/subdivide.py
index 8c8eff0..49e5e5d 100644
--- a/test/subdivide.py
+++ b/test/subdivide.py
@@ -36,7 +36,7 @@ being the equivalent of Decider('content').
"""
import os
-
+import sys
import TestSCons
test = TestSCons.TestSCons()
@@ -59,22 +59,22 @@ fake_cc_py = test.workpath('fake_cc.py')
fake_link_py = test.workpath('fake_link.py')
test.write(fake_cc_py, """\
-#!/usr/bin/env python
+#!/usr/bin/env python%s
import sys
ofp = open(sys.argv[1], 'w')
-ofp.write('fake_cc.py: %s\\n' % sys.argv)
+ofp.write('fake_cc.py: %%s\\n' %% sys.argv)
for s in sys.argv[2:]:
ofp.write(open(s, 'r').read())
-""")
+""" % sys.version_info[0])
test.write(fake_link_py, """\
-#!/usr/bin/env python
+#!/usr/bin/env python%s
import sys
ofp = open(sys.argv[1], 'w')
-ofp.write('fake_link.py: %s\\n' % sys.argv)
+ofp.write('fake_link.py: %%s\\n' %% sys.argv)
for s in sys.argv[2:]:
ofp.write(open(s, 'r').read())
-""")
+""" % sys.version_info[0])
test.chmod(fake_cc_py, 0o755)
test.chmod(fake_link_py, 0o755)