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:
parent
77be302469
commit
4eb7e298b6
|
@ -32,4 +32,11 @@ class Bug639Test(unittest.TestCase):
|
|||
p = manip.save(qd)
|
||||
|
||||
# Check the savecount stored on the object (see the model)
|
||||
self.assertEqual(p._savecount, 1)
|
||||
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())
|
Loading…
Reference in New Issue