summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--yaksh/test_models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/test_models.py b/yaksh/test_models.py
index 53ee656..374fb29 100644
--- a/yaksh/test_models.py
+++ b/yaksh/test_models.py
@@ -2144,9 +2144,9 @@ class FileUploadTestCases(unittest.TestCase):
)
def test_get_file_name(self):
- print((self.file_upload.file.path))
self.assertEqual(self.file_upload.get_filename(), self.filename)
def tearDown(self):
- os.remove(self.file_upload.file.path)
+ if os.path.isfile(self.file_upload.file.path):
+ os.remove(self.file_upload.file.path)
self.file_upload.delete()