diff options
author | William Deegan <bill@baddogconsulting.com> | 2017-03-12 23:51:10 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-03-12 23:51:10 (GMT) |
commit | 2a815ecf9af4b2e05bbbd059f627cfa9e43a207d (patch) | |
tree | 9a3c801837d03e8dadaea99fa005cb8edad57201 /test/Ghostscript | |
parent | c4af5550a346787ea81616048f091010cde3debd (diff) | |
download | SCons-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.py | 6 |
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') |