Author: lukeplant
Date: 2010-10-07 18:48:25 -0500 (Thu, 07 Oct 2010)
New Revision: 14001

Modified:
   django/trunk/tests/regressiontests/file_storage/tests.py
Log:
Fixed #14430 - Test failure on Windows with get_image_dimensions since [13715]

Thanks to gabrielhurley for report and patch.

Modified: django/trunk/tests/regressiontests/file_storage/tests.py
===================================================================
--- django/trunk/tests/regressiontests/file_storage/tests.py    2010-10-07 
23:36:02 UTC (rev 14000)
+++ django/trunk/tests/regressiontests/file_storage/tests.py    2010-10-07 
23:48:25 UTC (rev 14001)
@@ -375,7 +375,7 @@
             """
             from django.core.files.images import ImageFile
             img_path = os.path.join(os.path.dirname(__file__), "test.png")
-            image = ImageFile(open(img_path))
+            image = ImageFile(open(img_path, 'rb'))
             image_pil = Image.open(img_path)
             size_1, size_2 = get_image_dimensions(image), 
get_image_dimensions(image)
             self.assertEqual(image_pil.size, size_1)

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@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