summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Kaplan-Moss <jacob@jacobian.org>2008-07-12 20:44:05 +0000
committerJacob Kaplan-Moss <jacob@jacobian.org>2008-07-12 20:44:05 +0000
commit185ba8f7e4faafdc1cafb6d6559015c96345f209 (patch)
tree5e1c1cf0c7d887b7a45ea39fcd2c6902d19fa475
parent476d5f2c0d6e3141fa7429a904efb5721493bbdf (diff)
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
-rw-r--r--tests/modeltests/model_forms/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/modeltests/model_forms/models.py b/tests/modeltests/model_forms/models.py
index f2b0e05cc4..e8598bd68f 100644
--- a/tests/modeltests/model_forms/models.py
+++ b/tests/modeltests/model_forms/models.py
@@ -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()