summaryrefslogtreecommitdiff
path: root/test/textfile.py
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-03-20 16:04:50 -0700
committerWilliam Deegan <bill@baddogconsulting.com>2017-03-20 16:04:50 -0700
commit64d22ea84a817ad89c8758afa1100ad489377933 (patch)
treecfbb42a40703a8640c4f731a4ad62c1275eaa92c /test/textfile.py
parentd3da4fd3d250662234001baecff23ba69b9e91ad (diff)
downloadscons-64d22ea84a817ad89c8758afa1100ad489377933.tar.gz
py2/3 fixed binary/str issue, but test is still failing on py3 with _action signature changing. Need to investigate
Diffstat (limited to 'test/textfile.py')
-rw-r--r--test/textfile.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/textfile.py b/test/textfile.py
index 64f8605f..3d336c6d 100644
--- a/test/textfile.py
+++ b/test/textfile.py
@@ -130,7 +130,7 @@ s = env.Substfile('sub4', t, SUBST_DICT = sub2)
s = env.Substfile('sub5', s, SUBST_DICT = sub1)
# both
s = env.Substfile('sub6', t, SUBST_DICT = sub3)
-""")
+""", mode='w')
test.run(arguments = '.')
@@ -142,7 +142,7 @@ line3b = 'This line has many substitutions'
def matchem(file, lines):
lines = os.linesep.join(lines)
- test.must_match(file, lines)
+ test.must_match(file, lines, mode='r')
matchem('text.txt', [line1, line2a, line3a])
matchem('sub1', [line1, line2a, line3a])
@@ -152,6 +152,6 @@ matchem('sub4', [line1, line2a, line3b])
matchem('sub5', [line1, line2b, line3b])
matchem('sub6', [line1, line2b, line3b])
-test.up_to_date(arguments = '.')
+test.up_to_date(arguments = '. --debug=explain')
test.pass_test()