summaryrefslogtreecommitdiff
path: root/yaksh/evaluator_tests/test_java_evaluation.py
diff options
context:
space:
mode:
authormaheshgudi2017-01-09 12:48:37 +0530
committermaheshgudi2017-01-09 18:10:30 +0530
commitcf4f207f710b9f67e0973a99f5894c4a866bca4c (patch)
tree8426a0d1611a406e2fbbf3cc5d8e4a1ae91bcb10 /yaksh/evaluator_tests/test_java_evaluation.py
parent6b8f8f53d7110e27bc44f0d50b8b3155155932f6 (diff)
downloadonline_test-cf4f207f710b9f67e0973a99f5894c4a866bca4c.tar.gz
online_test-cf4f207f710b9f67e0973a99f5894c4a866bca4c.tar.bz2
online_test-cf4f207f710b9f67e0973a99f5894c4a866bca4c.zip
modified tests and hook evaluator for python 3
Diffstat (limited to 'yaksh/evaluator_tests/test_java_evaluation.py')
-rw-r--r--yaksh/evaluator_tests/test_java_evaluation.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/yaksh/evaluator_tests/test_java_evaluation.py b/yaksh/evaluator_tests/test_java_evaluation.py
index 8c9fe90..3d127af 100644
--- a/yaksh/evaluator_tests/test_java_evaluation.py
+++ b/yaksh/evaluator_tests/test_java_evaluation.py
@@ -553,7 +553,7 @@ class JavaHookEvaluationTestCases(EvaluatorBaseTest):
cmds = ["javac Test.java", "java Test"]
for cmd in cmds:
stdout, stderr = _run_command(cmd)
- if stdout == "Hello, world!":
+ if stdout.decode("utf-8") == "Hello, world!":
success, err, mark_fraction = True, "", 1.0
return success, err, mark_fraction
"""
@@ -606,7 +606,7 @@ class JavaHookEvaluationTestCases(EvaluatorBaseTest):
cmds = ["javac Test.java", "java Test"]
for cmd in cmds:
stdout, stderr = _run_command(cmd)
- if stdout == "Hello, world!":
+ if stdout.decode("utf-8") == "Hello, world!":
success, err, mark_fraction = True, "", 1.0
return success, err, mark_fraction
"""
@@ -736,7 +736,7 @@ class JavaHookEvaluationTestCases(EvaluatorBaseTest):
cmds = ["javac Test.java", "java Test"]
for cmd in cmds:
stdout, stderr = _run_command(cmd)
- if stdout == "Hello, world!":
+ if stdout.decode("utf-8") == "Hello, world!":
success, err, mark_fraction = True, "", 1.0
return success, err, mark_fraction
"""
@@ -806,7 +806,7 @@ class JavaHookEvaluationTestCases(EvaluatorBaseTest):
cmds = ["javac Test.java", "java Test"]
for cmd in cmds:
stdout, stderr = _run_command(cmd)
- if stdout == "Hello, world!":
+ if stdout.decode("utf-8") == "Hello, world!":
success, err, mark_fraction = True, "", 1.0
return success, err, mark_fraction
"""