[Django] #25925: i18n.test_compilation.CompilationErrorHandling.test_msgfmt_error_including_non_ascii fails

4 views
Skip to first unread message

Django

unread,
Dec 12, 2015, 8:41:18 AM12/12/15
to django-...@googlegroups.com
#25925: i18n.test_compilation.CompilationErrorHandling.test_msgfmt_error_including_non_ascii
fails
--------------------------------------+--------------------
Reporter: sir-sigurd | Owner: nobody
Type: Bug | Status: new
Component: Internationalization | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+--------------------
{{{
======================================================================
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.

--
Ticket URL: <https://code.djangoproject.com/ticket/25925>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Dec 12, 2015, 9:09:38 AM12/12/15
to django-...@googlegroups.com
#25925: i18n.test_compilation.CompilationErrorHandling.test_msgfmt_error_including_non_ascii
fails
--------------------------------------+------------------------------------
Reporter: sir-sigurd | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Internationalization | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by claudep):

* needs_better_patch: => 0
* stage: Unreviewed => Accepted
* type: Bug => Cleanup/optimization
* needs_tests: => 0
* needs_docs: => 0


Comment:

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

--
Ticket URL: <https://code.djangoproject.com/ticket/25925#comment:1>

Django

unread,
Dec 13, 2015, 9:20:06 AM12/13/15
to django-...@googlegroups.com
#25925: i18n.test_compilation.CompilationErrorHandling.test_msgfmt_error_including_non_ascii
fails
-------------------------------------+-------------------------------------
Reporter: sir-sigurd | Owner: sir-
Type: | sigurd
Cleanup/optimization | Status: assigned
Component: | Version: master
Internationalization |

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by sir-sigurd):

* status: new => assigned
* owner: nobody => sir-sigurd


--
Ticket URL: <https://code.djangoproject.com/ticket/25925#comment:2>

Django

unread,
Dec 13, 2015, 9:21:28 AM12/13/15
to django-...@googlegroups.com
#25925: i18n.test_compilation.CompilationErrorHandling.test_msgfmt_error_including_non_ascii
fails
-------------------------------------+-------------------------------------
Reporter: sir-sigurd | Owner: sir-
Type: | sigurd
Cleanup/optimization | Status: assigned
Component: | Version: master
Internationalization |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by sir-sigurd):

* has_patch: 0 => 1


Comment:

PR -- https://github.com/django/django/pull/5822

--
Ticket URL: <https://code.djangoproject.com/ticket/25925#comment:3>

Django

unread,
Dec 13, 2015, 10:34:43 AM12/13/15
to django-...@googlegroups.com
#25925: i18n.test_compilation.CompilationErrorHandling.test_msgfmt_error_including_non_ascii
fails
-------------------------------------+-------------------------------------
Reporter: sir-sigurd | Owner: sir-
Type: | sigurd
Cleanup/optimization | Status: closed
Component: | Version: master
Internationalization |
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Claude Paroz <claude@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"5005b527cb9c7a2bfc76daa7f717bf7e3064e9ce" 5005b527]:
{{{
#!CommitTicketReference repository=""
revision="5005b527cb9c7a2bfc76daa7f717bf7e3064e9ce"
Fixed #25925 -- Forced LANG=C for test_msgfmt_error_including_non_ascii.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/25925#comment:4>

Django

unread,
Feb 23, 2016, 2:07:37 PM2/23/16
to django-...@googlegroups.com
#25925: i18n.test_compilation.CompilationErrorHandling.test_msgfmt_error_including_non_ascii
fails
-------------------------------------+-------------------------------------
Reporter: sir-sigurd | Owner: sir-
Type: | sigurd
Cleanup/optimization | Status: closed
Component: | Version: master
Internationalization |
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Claude Paroz <claude@…>):

In [changeset:"eda306f1cec20d490d5dc798ddaa8e8e8d13f26e" eda306f1]:
{{{
#!CommitTicketReference repository=""
revision="eda306f1cec20d490d5dc798ddaa8e8e8d13f26e"
Fixed #26232 -- Fixed Popen mocking environment in i18n tests

Refs #25925. Thanks Jeroen Pulles for the report.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/25925#comment:5>

Reply all
Reply to author
Forward
0 new messages