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
This commit is contained in:
Jacob Kaplan-Moss 2008-07-12 20:44:05 +00:00
parent 476d5f2c0d
commit 185ba8f7e4
1 changed files with 1 additions and 1 deletions

View File

@ -900,7 +900,7 @@ u'...test3.txt'
... 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()