Ticket #7613: ticket7613_regressiontests__file_uploads__tests_py.diff

File ticket7613_regressiontests__file_uploads__tests_py.diff, 610 bytes (added by eddymul@…, 7 years ago)
  • tests/regressiontests/file_uploads/tests.py

     
    2525        file2.seek(0)
    2626
    2727        # 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')
    2929        file3.write('b' * (2 ** 10))
    3030        file3.seek(0)
    3131
Back to Top