Ticket #7613: ticket7613_regressiontests__file_uploads__tests_py.diff
File ticket7613_regressiontests__file_uploads__tests_py.diff, 610 bytes (added by , 16 years ago) |
---|
-
tests/regressiontests/file_uploads/tests.py
25 25 file2.seek(0) 26 26 27 27 # This file contains chinese symbols for a name. 28 file3 = open(os.path.join(tdir, u'test_中文_Orl\u00e9ans.jpg' ), 'w+b')28 file3 = open(os.path.join(tdir, u'test_中文_Orl\u00e9ans.jpg'.encode('utf-8')), 'w+b') 29 29 file3.write('b' * (2 ** 10)) 30 30 file3.seek(0) 31 31