summaryrefslogtreecommitdiffstats
path: root/test/TEX
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-03-19 23:48:24 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2017-03-19 23:48:24 (GMT)
commit2ef8bb1c87905a5ce0c685d99a00a6741350f1fe (patch)
treedd90ec7f550fba0798160ef7ecbde6feb32fdcb9 /test/TEX
parent2b7f8ac804ff9063e5ba0bc18228a3f280c37255 (diff)
downloadSCons-2ef8bb1c87905a5ce0c685d99a00a6741350f1fe.zip
SCons-2ef8bb1c87905a5ce0c685d99a00a6741350f1fe.tar.gz
SCons-2ef8bb1c87905a5ce0c685d99a00a6741350f1fe.tar.bz2
py2/3 fix rb/wb also replace convoluted test logic with correct test methods to check for file exist/not exist
Diffstat (limited to 'test/TEX')
-rw-r--r--test/TEX/PDFTEXFLAGS.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/TEX/PDFTEXFLAGS.py b/test/TEX/PDFTEXFLAGS.py
index 06dc780..97b352e 100644
--- a/test/TEX/PDFTEXFLAGS.py
+++ b/test/TEX/PDFTEXFLAGS.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] != '\\':
@@ -96,15 +96,15 @@ This is the %s TeX file.
test.run(arguments = 'foo.pdf', stderr = None)
- test.fail_test(os.path.exists(test.workpath('wrapper.out')))
+ test.must_not_exist(test.workpath('wrapper.out'))
- test.fail_test(not os.path.exists(test.workpath('foo.pdf')))
+ test.must_exist(test.workpath('foo.pdf'))
test.run(arguments = 'bar.pdf', stderr = None)
- test.fail_test(not os.path.exists(test.workpath('wrapper.out')))
+ test.must_exist(test.workpath('wrapper.out'))
- test.fail_test(not os.path.exists(test.workpath('bar.pdf')))
+ test.must_exist(test.workpath('bar.pdf'))
test.pass_test()