diff options
author | mahesh | 2017-04-27 12:13:22 +0530 |
---|---|---|
committer | mahesh | 2017-04-27 12:13:22 +0530 |
commit | c431c255738b741698adffcbf894930ae298b8c0 (patch) | |
tree | edc60add3a49225af039c3b7c443ac08df9b4998 /yaksh/hook_evaluator.py | |
parent | 2c43a6b0555df1dea207bec88ef1f930aa66b0b9 (diff) | |
download | online_test-c431c255738b741698adffcbf894930ae298b8c0.tar.gz online_test-c431c255738b741698adffcbf894930ae298b8c0.tar.bz2 online_test-c431c255738b741698adffcbf894930ae298b8c0.zip |
added tests to check killing of stray processes in hook evaluator
Diffstat (limited to 'yaksh/hook_evaluator.py')
-rw-r--r-- | yaksh/hook_evaluator.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/yaksh/hook_evaluator.py b/yaksh/hook_evaluator.py index b86640c..f5364d6 100644 --- a/yaksh/hook_evaluator.py +++ b/yaksh/hook_evaluator.py @@ -2,13 +2,14 @@ import sys import traceback import os +import signal +import psutil # Local imports from .file_utils import copy_files, delete_files from .base_evaluator import BaseEvaluator from .grader import TimeoutException -import signal -import psutil + class HookEvaluator(BaseEvaluator): def __init__(self, metadata, test_case_data): |