summaryrefslogtreecommitdiff
path: root/yaksh/stdio_evaluator.py
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh/stdio_evaluator.py')
-rw-r--r--yaksh/stdio_evaluator.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/yaksh/stdio_evaluator.py b/yaksh/stdio_evaluator.py
index a5785ea..932ae7e 100644
--- a/yaksh/stdio_evaluator.py
+++ b/yaksh/stdio_evaluator.py
@@ -5,7 +5,7 @@ import signal
# Local imports
from .base_evaluator import BaseEvaluator
from .grader import TimeoutException
-from .compare_stdio import CompareOutputs
+from .compare_stdio import compare_outputs
class StdIOEvaluator(BaseEvaluator):
@@ -21,9 +21,8 @@ class StdIOEvaluator(BaseEvaluator):
os.killpg(os.getpgid(proc.pid), signal.SIGTERM)
raise
expected_output = expected_output.replace("\r", "")
- compare = CompareOutputs()
- success, err = compare.compare_outputs(expected_output,
- user_output,
- expected_input
- )
+ success, err = compare_outputs(expected_output,
+ user_output,
+ expected_input
+ )
return success, err