Django

Code

Changeset 4656

Show
Ignore:
Timestamp:
02/28/07 18:02:04 (2 years ago)
Author:
jacob
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/tests/regressiontests/bug639/tests.py

    r4609 r4656  
    3434        # Check the savecount stored on the object (see the model) 
    3535        self.assertEqual(p._savecount, 1) 
     36         
     37    def tearDown(self): 
     38        """ 
     39        Make sure to delete the "uploaded" file to avoid clogging /tmp. 
     40        """ 
     41        p = Photo.objects.get() 
     42        os.unlink(p.get_image_filename())