Author: jacob
Date: 2007-02-28 18:02:04 -0600 (Wed, 28 Feb 2007)
New Revision: 4656

Modified:
   django/trunk/tests/regressiontests/bug639/tests.py
Log:
Added a tearDown to the tests for #639 so that the "uploaded" image doesn't 
clog /tmp. Sorry, Joseph!


Modified: django/trunk/tests/regressiontests/bug639/tests.py
===================================================================
--- django/trunk/tests/regressiontests/bug639/tests.py  2007-02-28 23:47:39 UTC 
(rev 4655)
+++ django/trunk/tests/regressiontests/bug639/tests.py  2007-03-01 00:02:04 UTC 
(rev 4656)
@@ -32,4 +32,11 @@
         p = manip.save(qd)
         
         # Check the savecount stored on the object (see the model)
-        self.assertEqual(p._savecount, 1)
\ No newline at end of file
+        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())
\ No newline at end of file


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to