summaryrefslogtreecommitdiffstats
path: root/test/DVIPS
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-03-12 22:35:12 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2017-03-12 22:35:12 (GMT)
commitfac6a93b2fef46b7f0e66caf0dc4cc98d27fa2fb (patch)
tree56594a84735ff0a6a94850fdd5f43a5851bf2073 /test/DVIPS
parent1e010cb43dabeda08a5882f4f93969d217c8eecc (diff)
downloadSCons-fac6a93b2fef46b7f0e66caf0dc4cc98d27fa2fb.zip
SCons-fac6a93b2fef46b7f0e66caf0dc4cc98d27fa2fb.tar.gz
SCons-fac6a93b2fef46b7f0e66caf0dc4cc98d27fa2fb.tar.bz2
py2/3 fix mostly adding mode='r' to must_match
Diffstat (limited to 'test/DVIPS')
-rw-r--r--test/DVIPS/DVIPSFLAGS.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/DVIPS/DVIPSFLAGS.py b/test/DVIPS/DVIPSFLAGS.py
index 7aedf24..814c8aa 100644
--- a/test/DVIPS/DVIPSFLAGS.py
+++ b/test/DVIPS/DVIPSFLAGS.py
@@ -112,13 +112,13 @@ test.write('test4.latex', r"""This is a .latex test.
test.run(arguments = '.', stderr = None)
-test.must_match('test1.ps', " -x\nThis is a .dvi test.\n")
+test.must_match('test1.ps', " -x\nThis is a .dvi test.\n", mode='r')
-test.must_match('test2.ps', " -x\nThis is a .tex test.\n")
+test.must_match('test2.ps', " -x\nThis is a .tex test.\n", mode='r')
-test.must_match('test3.ps', " -x\nThis is a .ltx test.\n")
+test.must_match('test3.ps', " -x\nThis is a .ltx test.\n", mode='r')
-test.must_match('test4.ps', " -x\nThis is a .latex test.\n")
+test.must_match('test4.ps', " -x\nThis is a .latex test.\n", mode='r')
dvips = test.where_is('dvips')
@@ -161,20 +161,20 @@ This is the %s LaTeX file.
test.write('bar2.ltx', latex % 'bar2.ltx')
test.write('bar3.latex', latex % 'bar3.latex')
- test.run(arguments = 'foo.dvi', stderr = None)
+ test.run(arguments='foo.dvi', stderr=None)
test.must_not_exist(test.workpath('wrapper.out'))
test.must_exist(test.workpath('foo.dvi'))
- test.run(arguments = 'bar1.ps bar2.ps bar3.ps', stderr = None)
+ test.run(arguments='bar1.ps bar2.ps bar3.ps', stderr=None)
expect = """dvips -o bar1.ps bar1.dvi
dvips -o bar2.ps bar2.dvi
dvips -o bar3.ps bar3.dvi
"""
- test.must_match('wrapper.out', expect)
+ test.must_match('wrapper.out', expect, mode='r')
test.must_exist(test.workpath('bar1.ps'))
test.must_exist(test.workpath('bar2.ps'))