diff options
author | ankitjavalkar | 2020-01-28 17:44:20 +0530 |
---|---|---|
committer | GitHub | 2020-01-28 17:44:20 +0530 |
commit | ce988b1bec26b4a15bf3705c53a2525b0ef104e2 (patch) | |
tree | 3684776b578d9fbe20e46474aae492a42315b980 | |
parent | 7edfc63ab89d65337e17e8a79e8114a74b2146e3 (diff) | |
parent | ab221a11559269a396ca9fad92b1e122210e73b5 (diff) | |
download | online_test-ce988b1bec26b4a15bf3705c53a2525b0ef104e2.tar.gz online_test-ce988b1bec26b4a15bf3705c53a2525b0ef104e2.tar.bz2 online_test-ce988b1bec26b4a15bf3705c53a2525b0ef104e2.zip |
Merge pull request #643 from ankitjavalkar/fix-javastdio-bug
Check if file exists before tearing down in JavaStdIOEvaluator
-rw-r--r-- | yaksh/java_stdio_evaluator.py | 3 |
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) |