diff options
author | William Deegan <bill@baddogconsulting.com> | 2017-03-13 01:20:25 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-03-13 01:20:25 (GMT) |
commit | 0316ad1681b00b0c948f329db9c1eeedf709545b (patch) | |
tree | efe474bbdd3dd8d74e1b4420e949b9dba54adb83 /test/Java/JAVAC.py | |
parent | 91e275f3e1f334a15e4a338e9317d6f2078fc7df (diff) | |
download | SCons-0316ad1681b00b0c948f329db9c1eeedf709545b.zip SCons-0316ad1681b00b0c948f329db9c1eeedf709545b.tar.gz SCons-0316ad1681b00b0c948f329db9c1eeedf709545b.tar.bz2 |
swap using wrapper.py fixture to wrapper_with_args.py. The fixture swap missed that java tests wrapper was different. Also mode rb/wb changes, and switch to must_match with mode='r'
Diffstat (limited to 'test/Java/JAVAC.py')
-rw-r--r-- | test/Java/JAVAC.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/Java/JAVAC.py b/test/Java/JAVAC.py index 06b1969..da42fc6 100644 --- a/test/Java/JAVAC.py +++ b/test/Java/JAVAC.py @@ -51,8 +51,8 @@ while args: break args = args[1:] for file in args: - infile = open(file, 'rb') - outfile = open(file[:-5] + '.class', 'wb') + infile = open(file, 'r') + outfile = open(file[:-5] + '.class', 'w') for l in infile.readlines(): if l[:9] != '/*javac*/': outfile.write(l) @@ -73,7 +73,7 @@ line 3 test.run(arguments = '.', stderr = None) -test.must_match('test1.class', "test1.java\nline 3\n") +test.must_match('test1.class', "test1.java\nline 3\n", mode='r') if os.path.normcase('.java') == os.path.normcase('.JAVA'): |