Author: jacob
Date: 2008-07-12 15:43:03 -0500 (Sat, 12 Jul 2008)
New Revision: 7904
Modified:
django/trunk/tests/regressiontests/file_uploads/tests.py
Log:
Fixed #7613: fixed file_upload tests when LANG=C. Thanks, eddymul.
Modified: django/trunk/tests/regressiontests/file_uploads/tests.py
===================================================================
--- django/trunk/tests/regressiontests/file_uploads/tests.py 2008-07-12
19:00:38 UTC (rev 7903)
+++ django/trunk/tests/regressiontests/file_uploads/tests.py 2008-07-12
20:43:03 UTC (rev 7904)
@@ -25,7 +25,7 @@
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)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---