From ab221a11559269a396ca9fad92b1e122210e73b5 Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Tue, 28 Jan 2020 17:21:28 +0530 Subject: Check if file exists before tearing down in JavaStdIOEvaluator --- yaksh/java_stdio_evaluator.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- cgit