summaryrefslogtreecommitdiffstats
path: root/test/TEX/PDFLATEXFLAGS.py
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-03-20 00:12:04 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2017-03-20 00:12:04 (GMT)
commit1e6772f1cdcd97e51b59f7d7702dd7476e28c3d9 (patch)
tree4f849d7ecff872a415e449a778f593e147dd5f0c /test/TEX/PDFLATEXFLAGS.py
parent2ef8bb1c87905a5ce0c685d99a00a6741350f1fe (diff)
downloadSCons-1e6772f1cdcd97e51b59f7d7702dd7476e28c3d9.zip
SCons-1e6772f1cdcd97e51b59f7d7702dd7476e28c3d9.tar.gz
SCons-1e6772f1cdcd97e51b59f7d7702dd7476e28c3d9.tar.bz2
py2/3 fix wb/rb
Diffstat (limited to 'test/TEX/PDFLATEXFLAGS.py')
-rw-r--r--test/TEX/PDFLATEXFLAGS.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/TEX/PDFLATEXFLAGS.py b/test/TEX/PDFLATEXFLAGS.py
index ffed20b..47643e4 100644
--- a/test/TEX/PDFLATEXFLAGS.py
+++ b/test/TEX/PDFLATEXFLAGS.py
@@ -43,8 +43,8 @@ opt_string = ''
for opt, arg in cmd_opts:
opt_string = opt_string + ' ' + opt
base_name = os.path.splitext(args[0])[0]
-infile = open(args[0], 'rb')
-out_file = open(base_name+'.pdf', 'wb')
+infile = open(args[0], 'r')
+out_file = open(base_name+'.pdf', 'w')
out_file.write(opt_string + "\n")
for l in infile.readlines():
if l[0] != '\\':
@@ -111,7 +111,7 @@ This is the %s LaTeX file.
test.run(arguments = 'bar.pdf', stderr = None)
- test.fail_test(test.read('wrapper.out') != "wrapper.py\n")
+ test.must_match('wrapper.out',"wrapper.py\n", mode='r')
test.fail_test(not os.path.exists(test.workpath('bar.pdf')))