Opened 11 years ago
Closed 11 years ago
#21991 closed Cleanup/optimization (fixed)
Unrelated tests will fail if locales is not installed
Reported by: | Juan J. Martinez | Owned by: | ANUBHAV JOSHI |
---|---|---|---|
Component: | Documentation | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | anubhav9042@… | Triage Stage: | Accepted |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
If locales packages is not present any UTF-8 related test will fail with an UnicodeEncodeError in Python's codecs.py, that is in fact misleading.
Please note that setting the LANG (and related) env variable won't solve the problem as the issue seems related to the locales not being generated.
Perhaps we could include a test that detects the actual problem (locales not configured).
This issue can be reproduced in a debian based system by removing locales package (with dpkg --purge locales
) and running the test suite normally.
To fix the system just apt-get install locales
and then dpkg-reconfigure locales
and generate the locales you need (eg en_GB.UTF-8), and the tests will pass.
I'm attaching a full error log of running the tests in a Debian Jessie system with no locales installed.
Attachments (1)
Change History (4)
by , 11 years ago
Attachment: | error_log.txt added |
---|
comment:1 by , 11 years ago
Component: | Testing framework → Documentation |
---|---|
Triage Stage: | Unreviewed → Accepted |
Type: | Bug → Cleanup/optimization |
We should probably document the requirement.
comment:2 by , 11 years ago
Cc: | added |
---|---|
Owner: | changed from | to
Status: | new → assigned |
comment:3 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
error log, test failing