Author: jacob
Date: 2008-07-12 15:44:05 -0500 (Sat, 12 Jul 2008)
New Revision: 7909
Modified:
django/trunk/tests/modeltests/model_forms/models.py
Log:
FIxed #7696: fixed model_form tests on Windows after [7814]. Thanks, Marty
Alchin.
Modified: django/trunk/tests/modeltests/model_forms/models.py
===================================================================
--- django/trunk/tests/modeltests/model_forms/models.py 2008-07-12 20:43:52 UTC
(rev 7908)
+++ django/trunk/tests/modeltests/model_forms/models.py 2008-07-12 20:44:05 UTC
(rev 7909)
@@ -900,7 +900,7 @@
... 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()
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---