summaryrefslogtreecommitdiff
path: root/test/Ghostscript
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-03-12 19:51:10 -0400
committerWilliam Deegan <bill@baddogconsulting.com>2017-03-12 19:51:10 -0400
commit05d8afd5ee2bce9dd0432d5e3b33649726229fce (patch)
tree9a3c801837d03e8dadaea99fa005cb8edad57201 /test/Ghostscript
parent3cf98dc19752e824d861be734fc5bf74ab075388 (diff)
downloadscons-05d8afd5ee2bce9dd0432d5e3b33649726229fce.tar.gz
switch to use must_match, mode=r, and get rid of rb/wb
Diffstat (limited to 'test/Ghostscript')
-rw-r--r--test/Ghostscript/GSFLAGS.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/Ghostscript/GSFLAGS.py b/test/Ghostscript/GSFLAGS.py
index c8e0668c..e1471fa0 100644
--- a/test/Ghostscript/GSFLAGS.py
+++ b/test/Ghostscript/GSFLAGS.py
@@ -44,10 +44,10 @@ opt_string = ''
for opt, arg in cmd_opts:
if opt == '-s':
if arg[:11] == 'OutputFile=':
- out_file = open(arg[11:], 'wb')
+ out_file = open(arg[11:], 'w')
else:
opt_string = opt_string + ' ' + opt
-infile = open(args[0], 'rb')
+infile = open(args[0], 'r')
out_file.write(opt_string + "\n")
for l in infile.readlines():
if l[:3] != '#ps':
@@ -68,7 +68,7 @@ This is a .ps test.
test.run(arguments = '.', stderr = None)
-test.fail_test(test.read('test1.pdf') != " -x\nThis is a .ps test.\n")
+test.must_match('test1.pdf', " -x\nThis is a .ps test.\n", mode='r')