Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #14430 - Test failure on Windows with get_image_dimensions sinc…

…e [13715]

Thanks to gabrielhurley for report and patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14001 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 43b6b32945cee07c3f85f1a696fca12fcba6ee2f 1 parent 0aa438a
@spookylukey spookylukey authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  tests/regressiontests/file_storage/tests.py
View
2  tests/regressiontests/file_storage/tests.py
@@ -375,7 +375,7 @@ def test_multiple_calls(self):
"""
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)
Please sign in to comment.
Something went wrong with that request. Please try again.