summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoradityacp2020-01-29 09:59:18 +0530
committeradityacp2020-01-29 09:59:18 +0530
commitabebc451e9a076c96dac586932f775663f693884 (patch)
treee04c9e874518c30afe978fc2cf61727fbdf0551c
parent823d875863d907925e13c2e907f1a0382edf61ac (diff)
parentce988b1bec26b4a15bf3705c53a2525b0ef104e2 (diff)
downloadonline_test-abebc451e9a076c96dac586932f775663f693884.tar.gz
online_test-abebc451e9a076c96dac586932f775663f693884.tar.bz2
online_test-abebc451e9a076c96dac586932f775663f693884.zip
Merge branch 'master' of https://github.com/FOSSEE/online_test into revamp_ui
-rw-r--r--yaksh/java_stdio_evaluator.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/yaksh/java_stdio_evaluator.py b/yaksh/java_stdio_evaluator.py
index 89f9fc4..0d7e480 100644
--- a/yaksh/java_stdio_evaluator.py
+++ b/yaksh/java_stdio_evaluator.py
@@ -26,7 +26,8 @@ class JavaStdIOEvaluator(StdIOEvaluator):
self.weight = test_case_data.get('weight')
def teardown(self):
- os.remove(self.submit_code_path)
+ if os.path.exists(self.submit_code_path):
+ os.remove(self.submit_code_path)
if self.files:
delete_files(self.files)