Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#25925 closed Cleanup/optimization (fixed)

i18n.test_compilation.CompilationErrorHandling.test_msgfmt_error_including_non_ascii fails

Reported by: Sergey Fedoseev Owned by: Sergey Fedoseev
Component: Internationalization Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

======================================================================
FAIL: test_msgfmt_error_including_non_ascii (i18n.test_compilation.CompilationErrorHandling)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/sergey/dev/django/tests/i18n/test_compilation.py", line 176, in test_msgfmt_error_including_non_ascii
    self.assertIn("'�' cannot start a field name", six.text_type(err))
AssertionError: u"'\ufffd' cannot start a field name" not found in u'Execution of msgfmt failed: /home/sergey/dev/django/tests/i18n/commands/locale/ko/LC_MESSAGES/django.po:24: \u0421\u0442\u0440\u043e\u043a\u0430 \xabmsgstr\xbb \u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u043f\u043e\u0434 \u0444\u043e\u0440\u043c\u0430\u0442 Python brace, \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0439 \xabmsgid\xbb. \u041f\u0440\u0438\u0447\u0438\u043d\u0430: \u0412 \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u0435 \u043d\u043e\u043c\u0435\u0440 0 \u0441 \xab\ufffd\xbb \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c\u0441\u044f \u0438\u043c\u044f \u043f\u043e\u043b\u044f.\nmsgfmt: \u043d\u0430\u0439\u0434\u0435\u043d\u0430 1 \u043a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430\n'

msgfmt version is 0.19.6.

Change History (5)

comment:1 by Claude Paroz, 9 years ago

Triage Stage: UnreviewedAccepted
Type: BugCleanup/optimization

This is due to localized gettext output. I wonder if there is a way to force English messages (LANG=C?).

comment:2 by Sergey Fedoseev, 9 years ago

Owner: changed from nobody to Sergey Fedoseev
Status: newassigned

comment:3 by Sergey Fedoseev, 9 years ago

Has patch: set

comment:4 by Claude Paroz <claude@…>, 9 years ago

Resolution: fixed
Status: assignedclosed

In 5005b527:

Fixed #25925 -- Forced LANG=C for test_msgfmt_error_including_non_ascii.

comment:5 by Claude Paroz <claude@…>, 9 years ago

In eda306f1:

Fixed #26232 -- Fixed Popen mocking environment in i18n tests

Refs #25925. Thanks Jeroen Pulles for the report.

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