Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.2.X] Fixed #14430 - Test failure on Windows with get_image_dimensi…

…ons since [13715]

Thanks to gabrielhurley for report and patch.

Backport of [14001] from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14002 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit cf1d9f4b2cb30e8eb29b29714df592a31ddedcfa 1 parent 01b12a6
Luke Plant authored October 07, 2010
2  tests/regressiontests/file_storage/tests.py
@@ -375,7 +375,7 @@ def test_multiple_calls(self):
375 375
             """
376 376
             from django.core.files.images import ImageFile
377 377
             img_path = os.path.join(os.path.dirname(__file__), "test.png")
378  
-            image = ImageFile(open(img_path))
  378
+            image = ImageFile(open(img_path, 'rb'))
379 379
             image_pil = Image.open(img_path)
380 380
             size_1, size_2 = get_image_dimensions(image), get_image_dimensions(image)
381 381
             self.assertEqual(image_pil.size, size_1)

0 notes on commit cf1d9f4

Please sign in to comment.
Something went wrong with that request. Please try again.