On Thu, Apr 23, 2009 at 8:25 AM, jeffhg58 <jeffh...@comcast.net> wrote:
> > Thanks so much Karen. I will make the changes for the first failure > and I will also take a look at the windows error and see if I can > determine what is causing the error. > Actually I think I know what is causing this, and it turns out I can recreate it once I actually run the test (I forgot I had not installed PIL for Python2.6 on the machine I was using, so the test you see as failing was in fact being skipped on my machine). This is also a known problem: http://code.djangoproject.com/ticket/8817 Accessing an ImageField's dimensions (as the test does) leaves the file open, which subsequently causes the error on deletion on Windows. Adding: >>> p.mugshot.close() as line 44 of tests/regressiontests/file_storage/models.py makes the problem go away, but the real fix is to fix #8817 (which I haven't looked at the patches on in any detail). Karen --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---