summaryrefslogtreecommitdiff
path: root/test/DVIPS
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-03-10 23:32:42 -0500
committerWilliam Deegan <bill@baddogconsulting.com>2017-03-10 23:32:42 -0500
commitb636857a183f6abf68eadca27caa63ade2c7b545 (patch)
treec0a3f97c74d1ed6b4e8636b1c6b1fffa96086d59 /test/DVIPS
parent3398416b8fe131c8beb07d6c2c4dea2ffe73660e (diff)
downloadscons-b636857a183f6abf68eadca27caa63ade2c7b545.tar.gz
remove rb/wb from file opens, not needed py2/3. Also remove unneeded test for having latex on test system
Diffstat (limited to 'test/DVIPS')
-rw-r--r--test/DVIPS/DVIPSFLAGS.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/DVIPS/DVIPSFLAGS.py b/test/DVIPS/DVIPSFLAGS.py
index 4ab1b535..d651ee02 100644
--- a/test/DVIPS/DVIPSFLAGS.py
+++ b/test/DVIPS/DVIPSFLAGS.py
@@ -38,8 +38,8 @@ import sys
import getopt
cmd_opts, arg = getopt.getopt(sys.argv[1:], 'i:r:', [])
base_name = os.path.splitext(arg[0])[0]
-infile = open(arg[0], 'rb')
-out_file = open(base_name+'.dvi', 'wb')
+infile = open(arg[0], 'r')
+out_file = open(base_name+'.dvi', 'w')
for l in infile.readlines():
if l[:4] != '#tex':
out_file.write(l)
@@ -52,8 +52,8 @@ import sys
import getopt
cmd_opts, arg = getopt.getopt(sys.argv[1:], 'i:r:', [])
base_name = os.path.splitext(arg[0])[0]
-infile = open(arg[0], 'rb')
-out_file = open(base_name+'.dvi', 'wb')
+infile = open(arg[0], 'r')
+out_file = open(base_name+'.dvi', 'w')
for l in infile.readlines():
if l[:6] != '#latex':
out_file.write(l)
@@ -69,8 +69,8 @@ opt_string = ''
for opt, arg in cmd_opts:
if opt == '-o': outfile = arg
else: opt_string = opt_string + ' ' + opt
-infile = open(args[0], 'rb')
-out_file = open(outfile, 'wb')
+infile = open(args[0], 'r')
+out_file = open(outfile, 'w')
out_file.write(opt_string + "\n")
for l in infile.readlines():
if l[:6] != '#dvips':
@@ -120,9 +120,9 @@ test.must_match('test3.ps', " -x\nThis is a .ltx test.\n")
test.must_match('test4.ps', " -x\nThis is a .latex test.\n")
-have_latex = test.where_is('latex')
-if not have_latex:
- test.skip_test('Could not find latex; skipping test(s).\n')
+# have_latex = test.where_is('latex')
+# if not have_latex:
+# test.skip_test('Could not find latex; skipping test(s).\n')
dvips = test.where_is('dvips')