summaryrefslogtreecommitdiffstats
path: root/test/Java/JAVAC.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/Java/JAVAC.py')
-rw-r--r--test/Java/JAVAC.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/Java/JAVAC.py b/test/Java/JAVAC.py
index 06b1969..aaaa8f5 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)
@@ -71,9 +71,9 @@ test1.java
line 3
""")
-test.run(arguments = '.', stderr = None)
+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'):
@@ -89,9 +89,9 @@ test2.JAVA
line 3
""")
- test.run(arguments = '.', stderr = None)
+ test.run(arguments='.', stderr=None)
- test.must_match('test2.class', "test2.JAVA\nline 3\n")
+ test.must_match('test2.class', "test2.JAVA\nline 3\n", mode='r')