diff options
author | William Deegan <bill@baddogconsulting.com> | 2017-03-11 04:32:42 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-03-11 04:32:42 (GMT) |
commit | 18eb9a66c2f676a224f14dd8965ec064d09786fd (patch) | |
tree | c0a3f97c74d1ed6b4e8636b1c6b1fffa96086d59 /test/DVIPS | |
parent | 9b0ebfa042fb8b05515b80ec2d6b323f22883bca (diff) | |
download | SCons-18eb9a66c2f676a224f14dd8965ec064d09786fd.zip SCons-18eb9a66c2f676a224f14dd8965ec064d09786fd.tar.gz SCons-18eb9a66c2f676a224f14dd8965ec064d09786fd.tar.bz2 |
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.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/test/DVIPS/DVIPSFLAGS.py b/test/DVIPS/DVIPSFLAGS.py index 4ab1b53..d651ee0 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') |