summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Kaplan-Moss <jacob@jacobian.org>2008-07-12 20:43:03 +0000
committerJacob Kaplan-Moss <jacob@jacobian.org>2008-07-12 20:43:03 +0000
commit8e852a92ecb6432084ffdca333a7de80e5c6014d (patch)
treec6c8ab9688d70233fd99f827a7f7c11b8da1d3ce
parentf5bf3d9e9951724cf91d7f027985bcf48fdea965 (diff)
Fixed #7613: fixed file_upload tests when LANG=C. Thanks, eddymul.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7904 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--tests/regressiontests/file_uploads/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/regressiontests/file_uploads/tests.py b/tests/regressiontests/file_uploads/tests.py
index 8a61966240..d2b581686f 100644
--- a/tests/regressiontests/file_uploads/tests.py
+++ b/tests/regressiontests/file_uploads/tests.py
@@ -25,7 +25,7 @@ class FileUploadTests(TestCase):
file2.seek(0)
# This file contains chinese symbols for a name.
- file3 = open(os.path.join(tdir, u'test_&#20013;&#25991;_Orl\u00e9ans.jpg'), 'w+b')
+ file3 = open(os.path.join(tdir, u'test_&#20013;&#25991;_Orl\u00e9ans.jpg'.encode('utf-8')), 'w+b')
file3.write('b' * (2 ** 10))
file3.seek(0)