From 43b6b32945cee07c3f85f1a696fca12fcba6ee2f Mon Sep 17 00:00:00 2001 From: Luke Plant Date: Thu, 7 Oct 2010 23:48:25 +0000 Subject: [PATCH] Fixed #14430 - Test failure on Windows with get_image_dimensions since [13715] Thanks to gabrielhurley for report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14001 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/file_storage/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/regressiontests/file_storage/tests.py b/tests/regressiontests/file_storage/tests.py index d59fe9c307..46411aca87 100644 --- a/tests/regressiontests/file_storage/tests.py +++ b/tests/regressiontests/file_storage/tests.py @@ -375,7 +375,7 @@ if Image is not None: """ 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)