Opened 17 years ago
Last modified 17 years ago
#7613 closed
file_uploads regression test fails when LANG=C — at Version 2
| Reported by: | Owned by: | nobody | |
|---|---|---|---|
| Component: | Testing framework | Version: | dev |
| Severity: | Keywords: | 2070-fix | |
| Cc: | Triage Stage: | Ready for checkin | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description (last modified by )
tests/regressiontests/file_uploads/tests.py (and BuildBot) assumes LANG=en_US.UTF-8 when tests are run. When LANG=C, tests break.
steps to reproduce:
- run Django r7826 tests with LANG=C as environment
expected:
Django passes test suite.
bug:
======================================================================
ERROR: test_large_upload (regressiontests.file_uploads.tests.FileUploadTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/buildd/python-django-0.97~svn7826/tests/regressiontests/file_uploads/tests.py", line 28, in test_large_upload
file3 = open(os.path.join(tdir, u'test_中文_Orl\u00e9ans.jpg'), 'w+b')
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 30: ordinal not in range(128)
----------------------------------------------------------------------
Change History (3)
by , 17 years ago
| Attachment: | ticket7613_regressiontests__file_uploads__tests_py.diff added |
|---|
comment:1 by , 17 years ago
| Summary: | regression tests fail when LANG=C → file_uploads regression test fails when LANG=C |
|---|
comment:2 by , 17 years ago
| Description: | modified (diff) |
|---|
Note:
See TracTickets
for help on using tickets.