Code

Ticket #7613: ticket7613_regressiontests__file_uploads__tests_py.diff

File ticket7613_regressiontests__file_uploads__tests_py.diff, 610 bytes (added by eddymul@…, 6 years ago)
Line 
1Index: tests/regressiontests/file_uploads/tests.py
2===================================================================
3--- tests/regressiontests/file_uploads/tests.py (revision 7828)
4+++ tests/regressiontests/file_uploads/tests.py (working copy)
5@@ -25,7 +25,7 @@
6         file2.seek(0)
7 
8         # This file contains chinese symbols for a name.
9-        file3 = open(os.path.join(tdir, u'test_中文_Orl\u00e9ans.jpg'), 'w+b')
10+        file3 = open(os.path.join(tdir, u'test_中文_Orl\u00e9ans.jpg'.encode('utf-8')), 'w+b')
11         file3.write('b' * (2 ** 10))
12         file3.seek(0)
13