Permalink
Browse files

FIxed #7696: fixed model_form tests on Windows after [7814]. Thanks,…

… Marty Alchin.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@7909 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
jacobian committed Jul 12, 2008
1 parent 476d5f2 commit 185ba8f7e4faafdc1cafb6d6559015c96345f209
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/modeltests/model_forms/models.py
@@ -900,7 +900,7 @@ def __unicode__(self):
... class Meta:
... model = ImageFile
->>> image_data = open(os.path.join(os.path.dirname(__file__), "test.png")).read()
+>>> image_data = open(os.path.join(os.path.dirname(__file__), "test.png"), 'rb').read()
>>> f = ImageFileForm(data={'description': u'An image'}, files={'image': SimpleUploadedFile('test.png', image_data)})
>>> f.is_valid()

0 comments on commit 185ba8f

Please sign in to comment.