Added a tearDown to the tests for #639 so that the "uploaded" image doesn't clog /tmp. Sorry, Joseph!

git-svn-id: http://code.djangoproject.com/svn/django/trunk@4656 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jacob Kaplan-Moss 2007-03-01 00:02:04 +00:00
parent 77be302469
commit 4eb7e298b6
1 changed files with 8 additions and 1 deletions

View File

@ -33,3 +33,10 @@ class Bug639Test(unittest.TestCase):
# Check the savecount stored on the object (see the model)
self.assertEqual(p._savecount, 1)
def tearDown(self):
"""
Make sure to delete the "uploaded" file to avoid clogging /tmp.
"""
p = Photo.objects.get()
os.unlink(p.get_image_filename())