      import dummy_threading as threading
  
  from django.conf import settings
  from django.core.exceptions import SuspiciousOperation, ImproperlyConfigured
  from django.core.files.base import ContentFile
  from django.core.files.images import get_image_dimensions
  from django.core.files.storage import FileSystemStorage, get_storage_class
  from django.core.files.uploadedfile import UploadedFile
  from django.test import SimpleTestCase
  from django.utils import unittest
 
</s> remove     def test_content_file_custome_name(self):
 </s> add     def test_content_file_custom_name(self): </s> remove         while counter > 0:
            yield self.read(chunk_size)
            counter -= chunk_size
 </s> add         while True:
            data = self.read(chunk_size)
            if not data:
                break
            yield data </s> remove         # Assume the pointer is at zero...
        counter = self.size
 </s> add 
from django.core.files.base import File, ContentFile
      import dummy_threading as threading
  
  from django.conf import settings
  from django.core.exceptions import SuspiciousOperation, ImproperlyConfigured
from django.core.files.base import File, ContentFile
  from django.core.files.images import get_image_dimensions
  from django.core.files.storage import FileSystemStorage, get_storage_class
  from django.core.files.uploadedfile import UploadedFile
  from django.test import SimpleTestCase
  from django.utils import unittest
keep keep keep keep replace keep keep keep keep keep
 Fixed #15644 -- Improved Django File wrapper to support more file-like objects. Thanks nickname123 and Michael Palumbo for working on the patch.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@17871 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
tests/regressiontests/file_storage/tests.py