Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added a tearDown to the tests for #639 so that the "uploaded" image d…

…oesn't clog /tmp. Sorry, Joseph!

git-svn-id: http://code.djangoproject.com/svn/django/trunk@4656 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 4eb7e298b63eb2012b6e2959e5535103bf40e903 1 parent 77be302
@jacobian jacobian authored
Showing with 8 additions and 1 deletion.
  1. +8 −1 tests/regressiontests/bug639/tests.py
View
9 tests/regressiontests/bug639/tests.py
@@ -32,4 +32,11 @@ def testBug639(self):
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())
Please sign in to comment.
Something went wrong with that request. Please try again.