#21991 closed Cleanup/optimization (fixed)

Unrelated tests will fail if locales is not installed

Reported by: reidrac Owned by: anubhav9042
Component: Documentation Version: master
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)

error_log.txt (75.9 KB) - added by reidrac 14 months ago.
error log, test failing

Download all attachments as: .zip

Change History (4)

Changed 14 months ago by reidrac

error log, test failing

comment:1 Changed 14 months ago by timo

  • Component changed from Testing framework to Documentation
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted
  • Type changed from Bug to Cleanup/optimization

We should probably document the requirement.

comment:2 Changed 13 months ago by anubhav9042

  • Cc anubhav9042@… added
  • Owner changed from nobody to anubhav9042
  • Status changed from new to assigned

comment:3 Changed 13 months ago by Tim Graham <timograham@…>

  • Resolution set to fixed
  • Status changed from assigned to closed

In abade6413bf55d305f005c02577ad7c6aede7fdf:

Fixed #21991 -- Added warning regarding tests failure if locales not installed.

Thanks reidrac for the report.

Note: See TracTickets for help on using tickets.
Back to Top