From 8e852a92ecb6432084ffdca333a7de80e5c6014d Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Sat, 12 Jul 2008 20:43:03 +0000 Subject: [PATCH] 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 --- tests/regressiontests/file_uploads/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/regressiontests/file_uploads/tests.py b/tests/regressiontests/file_uploads/tests.py index 8a619662404..d2b581686fb 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_中文_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.seek(0)