summaryrefslogtreecommitdiffstats
path: root/test/Java/JAVAC.py
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-03-13 01:20:25 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2017-03-13 01:20:25 (GMT)
commit0316ad1681b00b0c948f329db9c1eeedf709545b (patch)
treeefe474bbdd3dd8d74e1b4420e949b9dba54adb83 /test/Java/JAVAC.py
parent91e275f3e1f334a15e4a338e9317d6f2078fc7df (diff)
downloadSCons-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.py6
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'):