#8817: Accessing ImageField's dimensions doesn't close file
-------------------------------------------+--------------------------------
          Reporter:  tripediac             |         Owner:  mitsuhiko
            Status:  closed                |     Milestone:  1.1      
         Component:  File uploads/storage  |       Version:  SVN      
        Resolution:  fixed                 |      Keywords:           
             Stage:  Ready for checkin     |     Has_patch:  1        
        Needs_docs:  0                     |   Needs_tests:  0        
Needs_better_patch:  0                     |  
-------------------------------------------+--------------------------------
Comment (by kmtracey):

 The fix for this should have fixed #11032 but for some reason it hasn't.
 Using trunk r10707 on Windows with PIL installed, running the file_storage
 tests fails due to mug being open, therefore the attempt to delete the
 temp directory fails.  Removing lines 36-43 of
 regressiontests/file_storage/models.py (the lines that access the
 dimensions) makes the test pass.  Apparently the dimensions are read from
 an already-open file but the access of them is causing the file to not be
 subsequently closed?  I don't understand what's going on here, and
 unfortunately I've run out of time to look at this for several hours, so
 I'll settle for leaving this pesky comment.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/8817#comment:11>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to