Skip to content

Commit

Permalink
Fixed #7613: fixed file_upload tests when LANG=C. Thanks, eddymul.
Browse files Browse the repository at this point in the history
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7904 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
jacobian committed Jul 12, 2008
1 parent f5bf3d9 commit 8e852a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/regressiontests/file_uploads/tests.py
Expand Up @@ -25,7 +25,7 @@ def test_large_upload(self):
file2.seek(0) file2.seek(0)


# This file contains chinese symbols for a name. # This file contains chinese symbols for a name.
file3 = open(os.path.join(tdir, u'test_中文_Orl\u00e9ans.jpg'), 'w+b') file3 = open(os.path.join(tdir, u'test_中文_Orl\u00e9ans.jpg'.encode('utf-8')), 'w+b')
file3.write('b' * (2 ** 10)) file3.write('b' * (2 ** 10))
file3.seek(0) file3.seek(0)


Expand Down

0 comments on commit 8e852a9

Please sign in to comment.