summaryrefslogtreecommitdiffstats
path: root/test/D/HSTeoh/Common/arLibIssue.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/D/HSTeoh/Common/arLibIssue.py')
-rw-r--r--test/D/HSTeoh/Common/arLibIssue.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/D/HSTeoh/Common/arLibIssue.py b/test/D/HSTeoh/Common/arLibIssue.py
index 9bca3d8..6ea8caf 100644
--- a/test/D/HSTeoh/Common/arLibIssue.py
+++ b/test/D/HSTeoh/Common/arLibIssue.py
@@ -46,7 +46,9 @@ def testForTool(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=["{0}", "ar"]'.format(tool)))
+ with open('SConstruct_template', 'r') as f:
+ config = f.read().format('tools=["{0}", "ar"]'.format(tool))
+ test.write('SConstruct', config)
test.run()