diff options
author | adityacp | 2016-07-11 16:37:50 +0530 |
---|---|---|
committer | adityacp | 2016-07-28 15:56:06 +0530 |
commit | df9a893b91b4adb39f01b88f6b6d96359db37f47 (patch) | |
tree | 550368dc971592f859928c5ba1ecc30d0debae53 /yaksh/python_assertion_evaluator.py | |
parent | f84e26b203c77d4cf5c78860f43448a5858803c6 (diff) | |
download | online_test-df9a893b91b4adb39f01b88f6b6d96359db37f47.tar.gz online_test-df9a893b91b4adb39f01b88f6b6d96359db37f47.tar.bz2 online_test-df9a893b91b4adb39f01b88f6b6d96359db37f47.zip |
changed file module name in evaluators
Diffstat (limited to 'yaksh/python_assertion_evaluator.py')
-rw-r--r-- | yaksh/python_assertion_evaluator.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/yaksh/python_assertion_evaluator.py b/yaksh/python_assertion_evaluator.py index 3e98f08..04a4e69 100644 --- a/yaksh/python_assertion_evaluator.py +++ b/yaksh/python_assertion_evaluator.py @@ -7,7 +7,7 @@ import importlib # local imports from code_evaluator import CodeEvaluator, TimeoutException -from copy_delete_files import CopyDeleteFiles +from file_utils import copy_files, delete_files class PythonAssertionEvaluator(CodeEvaluator): @@ -20,15 +20,13 @@ class PythonAssertionEvaluator(CodeEvaluator): def teardown(self): super(PythonAssertionEvaluator, self).teardown() # Delete the created file. - if self.files_list: - file_delete = CopyDeleteFiles() - file_delete.delete_files(self.files_list) + if self.files: + delete_files(self.files) def compile_code(self, user_answer, file_paths, test_case): - self.files_list = [] + self.files = [] if file_paths: - file_copy = CopyDeleteFiles() - self.files_list = file_copy.copy_files(file_paths) + self.files = copy_files(file_paths) if self.exec_scope: return None else: |