Author: lukeplant
Date: 2010-10-07 18:49:31 -0500 (Thu, 07 Oct 2010)
New Revision: 14002
Modified:
django/branches/releases/1.2.X/tests/regressiontests/file_storage/tests.py
Log:
[1.2.X] Fixed #14430 - Test failure on Windows with get_image_dimensions since
[13715]
Thanks to gabrielhurley for report and patch.
Backport of [14001] from trunk.
Modified:
django/branches/releases/1.2.X/tests/regressiontests/file_storage/tests.py
===================================================================
--- django/branches/releases/1.2.X/tests/regressiontests/file_storage/tests.py
2010-10-07 23:48:25 UTC (rev 14001)
+++ django/branches/releases/1.2.X/tests/regressiontests/file_storage/tests.py
2010-10-07 23:49:31 UTC (rev 14002)
@@ -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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.