summaryrefslogtreecommitdiff
path: root/test/FindFile.py
diff options
context:
space:
mode:
authorRussel Winder <russel@winder.org.uk>2016-01-01 15:59:23 +0000
committerRussel Winder <russel@winder.org.uk>2016-01-01 15:59:23 +0000
commitf075b096be96479dbb162b71273b9012c88902f1 (patch)
tree4b30c7fe89b85380b9c825c906e2745c4d7c96d1 /test/FindFile.py
parenteaf9ba8362c74ce7589b5d2bfc6049d92d0c8d61 (diff)
downloadscons-f075b096be96479dbb162b71273b9012c88902f1.tar.gz
Some more statement to function transforms.
Diffstat (limited to 'test/FindFile.py')
-rw-r--r--test/FindFile.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/FindFile.py b/test/FindFile.py
index 5d198ac6..e8781721 100644
--- a/test/FindFile.py
+++ b/test/FindFile.py
@@ -40,13 +40,13 @@ test.write(['bar', 'baz', 'testfile2'], 'test 4\n')
test.write('SConstruct', """
env = Environment(FILE = 'file', BAR = 'bar')
file1 = FindFile('testfile1', [ 'foo', '.', 'bar', 'bar/baz' ])
-print open(str(file1), 'r').read()
+print(open(str(file1), 'r').read())
file2 = env.FindFile('test${FILE}1', [ 'bar', 'foo', '.', 'bar/baz' ])
-print open(str(file2), 'r').read()
+print(open(str(file2), 'r').read())
file3 = FindFile('testfile2', [ 'foo', '.', 'bar', 'bar/baz' ])
-print open(str(file3), 'r').read()
+print(open(str(file3), 'r').read())
file4 = env.FindFile('testfile2', [ '$BAR/baz', 'foo', '.', 'bar' ])
-print open(str(file4), 'r').read()
+print(open(str(file4), 'r').read())
""")
expect = test.wrap_stdout(read_str = """test 1