summaryrefslogtreecommitdiffstats
path: root/test/D/HSTeoh/Common
diff options
context:
space:
mode:
authorRussel Winder <russel@winder.org.uk>2014-09-15 17:47:05 (GMT)
committerRussel Winder <russel@winder.org.uk>2014-09-15 17:47:05 (GMT)
commit811d3f2115eae697a0132d11d07df54163f3479b (patch)
treea26e4a4dbab128366351712f627f681d1ae8c873 /test/D/HSTeoh/Common
parentf85f29e9f89811b9cf94f245711266f4616ece0b (diff)
downloadSCons-811d3f2115eae697a0132d11d07df54163f3479b.zip
SCons-811d3f2115eae697a0132d11d07df54163f3479b.tar.gz
SCons-811d3f2115eae697a0132d11d07df54163f3479b.tar.bz2
Make the format method work on Python 2.6 as well as later versions.
Diffstat (limited to 'test/D/HSTeoh/Common')
-rw-r--r--test/D/HSTeoh/Common/arLibIssue.py4
-rw-r--r--test/D/HSTeoh/Common/libCompileOptions.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/test/D/HSTeoh/Common/arLibIssue.py b/test/D/HSTeoh/Common/arLibIssue.py
index fe5902b..9bca3d8 100644
--- a/test/D/HSTeoh/Common/arLibIssue.py
+++ b/test/D/HSTeoh/Common/arLibIssue.py
@@ -43,10 +43,10 @@ def testForTool(tool):
test = TestSCons.TestSCons()
if not isExecutableOfToolAvailable(test, tool) :
- test.skip_test("Required executable for tool '{}' not found, skipping test.\n".format(tool))
+ test.skip_test("Required executable for tool '{0}' not found, skipping test.\n".format(tool))
test.dir_fixture('ArLibIssue')
- test.write('SConstruct', open('SConstruct_template', 'r').read().format('tools=["{}", "ar"]'.format(tool)))
+ test.write('SConstruct', open('SConstruct_template', 'r').read().format('tools=["{0}", "ar"]'.format(tool)))
test.run()
diff --git a/test/D/HSTeoh/Common/libCompileOptions.py b/test/D/HSTeoh/Common/libCompileOptions.py
index dd95fc8..4a21c45 100644
--- a/test/D/HSTeoh/Common/libCompileOptions.py
+++ b/test/D/HSTeoh/Common/libCompileOptions.py
@@ -43,10 +43,10 @@ def testForTool(tool):
test = TestSCons.TestSCons()
if not isExecutableOfToolAvailable(test, tool) :
- test.skip_test("Required executable for tool '{}' not found, skipping test.\n".format(tool))
+ test.skip_test("Required executable for tool '{0}' not found, skipping test.\n".format(tool))
test.dir_fixture('LibCompileOptions')
- test.write('SConstruct', open('SConstruct_template', 'r').read().format('tools=["{}", "link", "ar"]'.format(tool)))
+ test.write('SConstruct', open('SConstruct_template', 'r').read().format('tools=["{0}", "link", "ar"]'.format(tool)))
test.run()