summaryrefslogtreecommitdiffstats
path: root/test/Ghostscript
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-03-12 23:51:10 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2017-03-12 23:51:10 (GMT)
commit2a815ecf9af4b2e05bbbd059f627cfa9e43a207d (patch)
tree9a3c801837d03e8dadaea99fa005cb8edad57201 /test/Ghostscript
parentc4af5550a346787ea81616048f091010cde3debd (diff)
downloadSCons-2a815ecf9af4b2e05bbbd059f627cfa9e43a207d.zip
SCons-2a815ecf9af4b2e05bbbd059f627cfa9e43a207d.tar.gz
SCons-2a815ecf9af4b2e05bbbd059f627cfa9e43a207d.tar.bz2
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 c8e0668..e1471fa 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')