summaryrefslogtreecommitdiffstats
path: root/test/textfile.py
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-03-20 23:04:50 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2017-03-20 23:04:50 (GMT)
commit001262877b19faabc0ad0f45d4abd1d8cfc38093 (patch)
treecfbb42a40703a8640c4f731a4ad62c1275eaa92c /test/textfile.py
parent4c83816c2bdd84cc67a6935142b99312416f25d6 (diff)
downloadSCons-001262877b19faabc0ad0f45d4abd1d8cfc38093.zip
SCons-001262877b19faabc0ad0f45d4abd1d8cfc38093.tar.gz
SCons-001262877b19faabc0ad0f45d4abd1d8cfc38093.tar.bz2
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 64f8605..3d336c6 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()