summaryrefslogtreecommitdiff
path: root/test/Install
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-03-12 19:57:11 -0400
committerWilliam Deegan <bill@baddogconsulting.com>2017-03-12 19:57:11 -0400
commitca4f57d70329e2b022a58beed0acfd294e608fca (patch)
tree16ee3870c445f4f86501274ac7cc9b39d2289e9a /test/Install
parent64f51dcc832acda4f2abbd87a5f7db5f40dbb65d (diff)
downloadscons-ca4f57d70329e2b022a58beed0acfd294e608fca.tar.gz
get rid of rb/wb
Diffstat (limited to 'test/Install')
-rw-r--r--test/Install/Install.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/Install/Install.py b/test/Install/Install.py
index d66660ba..d039d78c 100644
--- a/test/Install/Install.py
+++ b/test/Install/Install.py
@@ -50,15 +50,15 @@ _SUBDIR_f4_out = os.path.join('$SUBDIR', 'f4.out')
test.write(['work', 'SConstruct'], """\
def cat(env, source, target):
target = str(target[0])
- f = open(target, "wb")
+ f = open(target, "w")
for src in source:
- f.write(open(str(src), "rb").read())
+ f.write(open(str(src), "r").read())
f.close()
def my_install(dest, source, env):
import shutil
shutil.copy2(source, dest)
- open('my_install.out', 'ab').write(dest)
+ open('my_install.out', 'a').write(dest)
env1 = Environment()
env1.Append(BUILDERS={'Cat':Builder(action=cat)})
@@ -122,7 +122,7 @@ test.fail_test(oldtime1 == os.path.getmtime(f1_out))
test.fail_test(oldtime2 != os.path.getmtime(f2_out))
# Verify that we didn't link to the Installed file.
-open(f2_out, 'wb').write("xyzzy\n")
+open(f2_out, 'w').write("xyzzy\n")
test.must_match(['work', 'f2.out'], "f2.in\n")
# Verify that scons prints an error message