summaryrefslogtreecommitdiff
path: root/test/ENV.py
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-03-12 19:46:59 -0400
committerWilliam Deegan <bill@baddogconsulting.com>2017-03-12 19:46:59 -0400
commit5e26c82b3ad95dcec45e763bc1e7668ebe56c0fa (patch)
tree954e173736ac773a7658063ee1008cf6d5a2f751 /test/ENV.py
parent2373dca92f5d8ad84ce584d739a027eaaebaa12f (diff)
downloadscons-5e26c82b3ad95dcec45e763bc1e7668ebe56c0fa.tar.gz
switch to use must_match, mode=r, and get rid of rb/wb
Diffstat (limited to 'test/ENV.py')
-rw-r--r--test/ENV.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/ENV.py b/test/ENV.py
index 5cb2362c..326f8c54 100644
--- a/test/ENV.py
+++ b/test/ENV.py
@@ -50,16 +50,18 @@ test.write('build.py',
r"""#!/usr/bin/env python
import os
import sys
-contents = open(sys.argv[2], 'rb').read()
-open(sys.argv[1], 'wb').write("build.py %s\n%s" % (os.environ['X'], contents))
+contents = open(sys.argv[2], 'r').read()
+open(sys.argv[1], 'w').write("build.py %s\n%s" % (os.environ['X'], contents))
""")
test.write('input', "input file\n")
test.run(arguments = '.')
-test.fail_test(test.read('env1.out') != "build.py env1\ninput file\n")
-test.fail_test(test.read('env2.out') != "build.py env2\ninput file\n")
+test.must_match('env1.out', "build.py env1\ninput file\n", mode='r')
+# test.fail_test(test.read('env1.out') != "build.py env1\ninput file\n")
+test.must_match('env2.out', "build.py env2\ninput file\n", mode='r')
+# test.fail_test(test.read('env2.out') != "build.py env2\ninput file\n")
test.write('SConstruct', """